On Mon, 18 Jan 2021, Anton Khirnov wrote:
Quoting Marton Balint (2021-01-10 02:20:45)
Signed-off-by: Marton Balint <c...@passwd.hu>
---
libavcodec/flashsv2enc.c | 76 +++++++++++++++++-----------------------
1 file changed, 32 insertions(+), 44 deletions(-)
diff --git a/libavcodec/flashsv2enc.c b/libavcodec/flashsv2enc.c
index 6603d0ded1..5139b17a28 100644
--- a/libavcodec/flashsv2enc.c
+++ b/libavcodec/flashsv2enc.c
@@ -252,7 +259,7 @@ static av_cold int flashsv2_encode_init(AVCodecContext *
avctx)
s->use_custom_palette = 0;
s->palette_type = -1; // so that the palette will be
generated in reconfigure_at_keyframe
- return 0;
+ return update_block_dimensions(s, 64, 64);
This looks different from the original value. Why the change?
Block dimensions are recalculated on every keyframe, so it does not
matter what the block width/height is after init. 64 is used
because the current code always selects that (see the
optimum_block_width/height functions).
Regards,
Marton
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".