]> git.sesse.net Git - ffmpeg/commit
avformat/frmdec: Simplify finding pixel format
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 1 Mar 2021 16:22:31 +0000 (17:22 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 3 Mar 2021 15:46:09 +0000 (16:46 +0100)
commit6a3f345c1ab78428b970775a6632362b8515dd04
tree73e34c0144e9ea1362c35643b0f5376b40fbba38
parent2ff40b98ecbd9befadddc8fe665a391f99bfca32
avformat/frmdec: Simplify finding pixel format

The fourccs used by the Megalux Frame format to determine the pixel
format are actually no fourccs at all as they are a single byte.
Furthermore, their range is continuous (1-5), so they are actually
ordinary indices. So treat them as such and don't use PixelFormatTags
for them.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/frmdec.c