[FFmpeg-devel] [PATCH 04/14] avcodec/ffv1dec: Don't copy unused field

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Sat Apr 24 14:14:36 EEST 2021


The decoder always uses AVCodecContext.bits_per_raw_sample.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
---
 libavcodec/ffv1dec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 3ac2904b63..c08ec5c1b7 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -1011,7 +1011,6 @@ static void copy_fields(FFV1Context *fsdst, const FFV1Context *fssrc,
     fsdst->slice_damaged       = fssrc->slice_damaged;
     fsdst->key_frame_ok        = fsrc->key_frame_ok;
 
-    fsdst->bits_per_raw_sample = fsrc->bits_per_raw_sample;
     fsdst->packed_at_lsb       = fsrc->packed_at_lsb;
     fsdst->slice_count         = fsrc->slice_count;
     if (fsrc->version<3){
-- 
2.27.0



More information about the ffmpeg-devel mailing list