]> git.sesse.net Git - ffmpeg/commit
avcodec/flashsv2enc: factorize updating block dimensions
authorMarton Balint <cus@passwd.hu>
Tue, 6 Oct 2020 23:39:43 +0000 (01:39 +0200)
committerMarton Balint <cus@passwd.hu>
Sat, 23 Jan 2021 19:13:39 +0000 (20:13 +0100)
commit257a83b969157eb76c18158a4e503e908d8b1125
tree45f49e30ac383237b18af18dbeae2e594a7ad00a
parentdaac7f4d9cbbaa85abc37d3e079dd23e531a709b
avcodec/flashsv2enc: factorize updating block dimensions

The patch changes the init function to initialize block dimensions to fixed
64x64 instead of the previously used image width/height based value.

This should not cause any actual change in behaviour because block dimensions
are recalculated on every keyframe in optimum_block_width() and
optimum_block_height() functions and in the current code the result is always
64x64 regardless of the image dimensions used.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavcodec/flashsv2enc.c