lavfi/asetnsamples: push as many frames as ready

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
pull/28/head
Andrey Utkin 12 years ago committed by Stefano Sabatini
parent 082b745d33
commit a32fa21d17
  1. 2
      libavfilter/af_asetnsamples.c

@ -151,7 +151,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
asns->next_out_pts = insamples->pts;
avfilter_unref_buffer(insamples);
if (av_audio_fifo_size(asns->fifo) >= asns->nb_out_samples)
while (av_audio_fifo_size(asns->fifo) >= asns->nb_out_samples)
push_samples(outlink);
return 0;
}

Loading…
Cancel
Save