diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-13 19:47:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-03 17:52:37 +0100 |
commit | 9e4d30397b6c3fbbf567fba8eb9249aacad1187d (patch) | |
tree | d29434a694381f8c58d3630a79e2150aac0f541b /doc/examples/decoding_encoding.c | |
parent | 399e5b675be9bfb08c1cb53ed8b62393ce69c6f1 (diff) | |
download | ffmpeg-9e4d30397b6c3fbbf567fba8eb9249aacad1187d.tar.gz |
decoding example: reset pts/dts after subpacket.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 0e187fd13c2e38e8ec90757101c33410c69ac16a)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/examples/decoding_encoding.c')
-rw-r--r-- | 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 f87a8c9c41..5271edf34e 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 |