Changeset 1102f31


Ignore:
Timestamp:
03/21/12 22:09:35 (4 years ago)
Author:
Rodeo <tdskywalker@…>
Branches:
master
Children:
6758f8b
Parents:
d905c15
Message:

Fix loop counter decrement in CFR frame duplication code. CFR would never duplicate a frame more than once, causing major A/V desync when the output framerate was over twice that of the input.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4523 b64f7644-9d1e-0410-96f1-a4d463321fa5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libhb/render.c

    r3b7a6fa r1102f31  
    478478            double excess_dur = (double)out->stop - cfr_stop;
    479479            out->stop = cfr_stop;
    480             for ( ; excess_dur >= pv->frame_rate; excess_dur -= cfr_stop )
     480            for ( ; excess_dur >= pv->frame_rate; excess_dur -= pv->frame_rate )
    481481            {
    482482                /* next frame too far ahead - dup current frame */
Note: See TracChangeset for help on using the changeset viewer.