[FFmpeg-cvslog] ffmpeg: update (next_)pts in the stream copy case

Michael Niedermayer git at videolan.org
Wed Feb 8 17:41:24 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Feb  8 17:26:06 2012 +0100| [fba318a4b02faf7b591dd941f0857db2ea1b3a8f] | committer: Michael Niedermayer

ffmpeg: update (next_)pts in the stream copy case

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fba318a4b02faf7b591dd941f0857db2ea1b3a8f
---

 ffmpeg.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 63749e6..d2cbd03 100644
--- 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];



More information about the ffmpeg-cvslog mailing list