[FFmpeg-devel] [PATCH] check sample_fmt in avcodec_open

Reimar Döffinger Reimar.Doeffinger
Wed Feb 9 18:47:49 CET 2011


On Wed, Feb 09, 2011 at 10:53:31AM -0500, Ronald S. Bultje wrote:
> +    if (avctx->codec->sample_fmts && avctx->codec->encode) {

I remember why I didn't update the patch as requested back then:
IMO in principle having an encode function does not necessarily
mean it is an encoder only, it could have both an encode and decode
functions, so I thought this horribly hackish.
Didn't have any better idea though.



More information about the ffmpeg-devel mailing list