[FFmpeg-devel] [PATCH] Add 'asetframesize' audiofilter

Nicolas George nicolas.george at normalesup.org
Wed Mar 14 19:18:02 CET 2012


Le quartidi 24 ventôse, an CCXX, Andrey Utkin a écrit :
> I request your attention and help to tricky moment of the algorithm: this
> filter does not call avfilter_filter_samples() from its .filter_samples()
> proc; but all other audiofilters do. Is that wrong, or ok?

There is some debate about that. Right now, several filters have different
behaviours than usual in that regard, and it is sometimes causing trouble,
such as different behaviours depending on how they are integrated.

For a simple one-input-one-output filter, I believe you will avoid all
problems if you stick to the basic principle: request_frame calls
request_frame (repeatedly if necessary), filter_samples calls filter_samples
(if there is enough data).

But you can also wait a little bit to see where the current discussion is
going before changing your code.

Hope this helps.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120314/3fa94fe4/attachment.asc>


More information about the ffmpeg-devel mailing list