ffmpeg: set dts for subtitles
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 19 May 2014 14:07:50 +0000 (16:07 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 19 May 2014 14:07:50 +0000 (16:07 +0200)
dts is not optional, its required for muxing,
previously it was set from AVStream.pts

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index aa30cd0..4c738ca 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -837,6 +837,7 @@ static void do_subtitle_out(AVFormatContext *s,
             else
                 pkt.pts += 90 * sub->end_display_time;
         }
+        pkt.dts = pkt.pts;
         write_frame(s, &pkt, ost);
     }
 }