[FFmpeg-cvslog] decoding example: reset pts/dts after 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:47:57 2011 +0100| [0e187fd13c2e38e8ec90757101c33410c69ac16a] | committer: Michael Niedermayer

decoding example: reset pts/dts after subpacket.

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

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

 doc/examples/decoding_encoding.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/doc/examples/decoding_encoding.c b/doc/examples/decoding_encoding.c
index f87a8c9..5271edf 100644
--- a/doc/examples/decoding_encoding.c
+++ b/doc/examples/decoding_encoding.c
@@ -180,6 +180,8 @@ static void audio_decode_example(const char *outfilename, const char *filename)
         }
         avpkt.size -= len;
         avpkt.data += len;
+        avpkt.dts =
+        avpkt.pts = AV_NOPTS_VALUE;
         if (avpkt.size < AUDIO_REFILL_THRESH) {
             /* Refill the input buffer, to avoid trying to decode
              * incomplete frames. Instead of this, one could also use



More information about the ffmpeg-cvslog mailing list