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 | 181 | avpkt.size -= len; |
| 182 | 182 | avpkt.data += len; |
| 183 | + avpkt.dts = | |
| 184 | + avpkt.pts = AV_NOPTS_VALUE; | |
| 183 | 185 | if (avpkt.size < AUDIO_REFILL_THRESH) { |
| 184 | 186 | /* Refill the input buffer, to avoid trying to decode |
| 185 | 187 | * incomplete frames. Instead of this, one could also use |