Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -102,6 +102,7 @@ void ff_af_queue_remove(AudioFrameQueue *afq, int nb_samples, int64_t *pts, · 101 unmodified lines | ||
| 102 | 102 | |
| 103 | 103 | if(nb_samples){ |
| 104 | 104 | av_assert0(!afq->frame_count); |
| 105 | + av_assert0(afq->remaining_samples == afq->remaining_delay); | |
| 105 | 106 | if(afq->frames && afq->frames[0].pts != AV_NOPTS_VALUE) |
| 106 | 107 | afq->frames[0].pts += nb_samples; |
| 107 | 108 | av_log(afq->avctx, AV_LOG_DEBUG, "Trying to remove %d more samples than are in the que\n", nb_samples); |