[FFmpeg-cvslog] ffmpeg: reset dts/pts after decoding the first subpacket

Michael Niedermayer git at videolan.org
Tue Dec 13 19:54:54 CET 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 13 19:46:29 2011 +0100| [6c39b3c278e2367056c7b53c8d48d4259a085e61] | committer: Michael Niedermayer

ffmpeg: reset dts/pts after decoding the first subpacket

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

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

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

diff --git a/ffmpeg.c b/ffmpeg.c
index cc8f2fc..0728c4e 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2047,6 +2047,10 @@ static int output_packet(InputStream *ist,
 
         if (ret < 0)
             return ret;
+
+        avpkt.dts=
+        avpkt.pts= AV_NOPTS_VALUE;
+
         // touch data and size only if not EOF
         if (pkt) {
             if(ist->st->codec->codec_type != AVMEDIA_TYPE_AUDIO)



More information about the ffmpeg-cvslog mailing list