decoding example: reset pts/dts after subpacket.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/2/head
Michael Niedermayer 13 years ago
parent 6c39b3c278
commit 0e187fd13c
  1. 2
      doc/examples/decoding_encoding.c

@ -180,6 +180,8 @@ static void audio_decode_example(const char *outfilename, const char *filename)
} }
avpkt.size -= len; avpkt.size -= len;
avpkt.data += len; avpkt.data += len;
avpkt.dts =
avpkt.pts = AV_NOPTS_VALUE;
if (avpkt.size < AUDIO_REFILL_THRESH) { if (avpkt.size < AUDIO_REFILL_THRESH) {
/* Refill the input buffer, to avoid trying to decode /* Refill the input buffer, to avoid trying to decode
* incomplete frames. Instead of this, one could also use * incomplete frames. Instead of this, one could also use

Loading…
Cancel
Save