Commit 0e187fd1 authored by Michael Niedermayer's avatar Michael Niedermayer

decoding example: reset pts/dts after subpacket.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6c39b3c2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment