[FFmpeg-user] FFMPEG encoded MPEG-2 video causes error in DVDAuthor

johnnyquid paulranft at hotmail.com
Sun Jul 31 03:14:18 CEST 2011

The source code has been changed from what was reported at the beginning of
the thread.  The old code was (quoted from reply above):

This issue appeared with SVN-r25383, when the following two lines were 
added in libavformat/mpegenc.c: 

1163   if(!s->last_scr) 
1164   s->last_scr= dts; 

The new code in mpegenc.c starting at line 1163 is now (but the issue still

    pts= pkt->pts;
    dts= pkt->dts;

    if(pts != AV_NOPTS_VALUE) pts += 2*preload;
    if(dts != AV_NOPTS_VALUE){
            s->last_scr= dts + preload;
        dts += 2*preload;

View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMPEG-encoded-MPEG-2-video-causes-error-in-DVDAuthor-tp2995983p3707066.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.

More information about the ffmpeg-user mailing list