]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Set next_pts to pts if its unknown and pkt->dts isnt known either, this
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 17 Feb 2008 19:08:15 +0000 (19:08 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 17 Feb 2008 19:08:15 +0000 (19:08 +0000)
is needed because next_pts is used to calculate the next pts and adding
to AV_NOPTS_VALUE doesnt achive the intended result.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12132 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

ffmpeg.c

index 59ce7caa69258300f70baf88f281c7ec937eb9b4..6a156dc4d68377f8544daee648e817a559a255fc 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1055,6 +1055,9 @@ static int output_packet(AVInputStream *ist, int ist_index,
     AVSubtitle subtitle, *subtitle_to_free;
     int got_subtitle;
 
+    if(ist->next_pts == AV_NOPTS_VALUE)
+        ist->next_pts= ist->pts;
+
     if (pkt == NULL) {
         /* EOF handling */
         ptr = NULL;