[FFmpeg-devel] [PATCH 11/13] lavc/jpeg2000: Minimize calls to av_codec_is_encoder()

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Tue Jun 14 18:04:41 EEST 2022


Tomas Härdin:
> 
> 

Why call it at all? Why not just add a new parameter to
ff_jpeg2000_init_component that is always set to 1 when called from the
encoder and 0 when called from the decoder?
(And is this really a bottleneck?)

- Andreas


More information about the ffmpeg-devel mailing list