Showing the changes to doc/examples/decoding_encoding.c (1 of 1 file). Show all
Unified · Split
| @@ -180,6 +180,8 @@ static void audio_decode_example(const char *outfilename, const char *filename) · 179 unmodified lines | |||
| 180 | } | 180 | } |
| 181 | avpkt.size -= len; | 181 | avpkt.size -= len; |
| 182 | avpkt.data += len; | 182 | avpkt.data += len; |
| 183 | avpkt.dts = | ||
| 184 | avpkt.pts = AV_NOPTS_VALUE; | ||
| 183 | if (avpkt.size < AUDIO_REFILL_THRESH) { | 185 | if (avpkt.size < AUDIO_REFILL_THRESH) { |
| 184 | /* Refill the input buffer, to avoid trying to decode | 186 | /* Refill the input buffer, to avoid trying to decode |
| 185 | * incomplete frames. Instead of this, one could also use | 187 | * incomplete frames. Instead of this, one could also use |