• J
    obs-ffmpeg: Fix potential integer overflows · d1e9b9d6
    jp9000 提交于
    This particularly affected audio encoding, audio encoding previously
    would count samples and use it to create an encoding timestamp, but
    because I was using a standard integer (which is 32bit by default on
    x86), it would max out at about 0x7FFFFFFF samples, which is about 12
    hours of samples at 48000 sample rate.  After that, it would start going
    into negative territory (overflowing).  By changing it to int64_t, it
    will make it so that audio at 48000 samples per second would only be
    able to overflow after about..  6.09 million years.  In other words,
    this should fix the issue for good.
    d1e9b9d6
obs-ffmpeg-aac.c 8.1 KB