[FFmpeg-devel] [PATCH 03/25] avfilter/af_headphone: Check for the existence of samples

Nicolas George george at nsup.org
Wed Sep 9 18:03:48 EEST 2020


Andreas Rheinhardt (12020-09-09):
> How should one then check whether an input is finished? Check for
> ff_inlink_check_available_samples(ctx->inputs[i],
> ff_inlink_queued_samples(ctx->inputs[i]) + 1) being 1?

No, these tell you what can be obtained immediately.

The test for a finished input is ff_inlink_acknowledge_status().

The need for this test is probably the sign of a flawed logic: the
filter is trying to anticipate things when it should just be organized
to do as necessary.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200909/d45b2855/attachment.sig>


More information about the ffmpeg-devel mailing list