X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Fframequeue.c;h=fed11189758f85e00e75a46038b1d656adbaa94d;hb=bbc7cfbf1e0b02323d4af512612342d2627080d8;hp=26bfa499675cb006fb20c1974f57db18865ffff4;hpb=091c9860559e4d33179747c5d651bc9e31bd76eb;p=ffmpeg diff --git a/libavfilter/framequeue.c b/libavfilter/framequeue.c index 26bfa499675..fed11189758 100644 --- a/libavfilter/framequeue.c +++ b/libavfilter/framequeue.c @@ -107,6 +107,7 @@ AVFrame *ff_framequeue_take(FFFrameQueue *fq) fq->tail &= fq->allocated - 1; fq->total_frames_tail++; fq->total_samples_tail += b->frame->nb_samples; + fq->samples_skipped = 0; check_consistency(fq); return b->frame; } @@ -146,5 +147,6 @@ void ff_framequeue_skip_samples(FFFrameQueue *fq, size_t samples, AVRational tim for (i = 0; i < planes && i < AV_NUM_DATA_POINTERS; i++) b->frame->data[i] = b->frame->extended_data[i]; fq->total_samples_tail += samples; + fq->samples_skipped = 1; ff_framequeue_update_peeked(fq, 0); }