OSDN Git Service

ffmpeg: update (next_)pts in the stream copy case
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Feb 2012 16:26:06 +0000 (17:26 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Feb 2012 16:26:06 +0000 (17:26 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c

index 63749e6..d2cbd03 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2318,6 +2318,8 @@ static int output_packet(InputStream *ist,
             }
             break;
         }
+        ist->pts = ist->dts;
+        ist->next_pts = ist->next_dts;
     }
     for (i = 0; pkt && i < nb_ostreams; i++) {
         OutputStream *ost = &ost_table[i];