[FFmpeg-devel] [PATCH v4 1/2] libavcodec/libaomenc.c: Support gray input
Moritz Barsnick
barsnick at gmx.net
Mon Jun 8 12:56:22 EEST 2020
On Sun, May 10, 2020 at 00:59:25 +0900, Ryo Hirafuji wrote:
> I can create and send a new patch without these workaround lines, but of
> course, it will crash if the ffmpeg will be built with older versions of
> libaom.
Actually, it depends on the runtime version of the library, not which
version it was built against. (They can differ.)
You could encapsulate the code into a check of aom_codec_version() >
(1<<16|0<<8|0). Assuming 1.0.0 is the current, buggy release.
> How should I resolve this backward compatibility issue? or I don't have to
> consider it?
Having a workaround for a known issue does not hurt, IMO, especially
since a fixed version is not available yet (or is it?).
Moritz
More information about the ffmpeg-devel
mailing list