[FFmpeg-cvslog] lavc/ffv1: drop write-only PlaneContext.interlace_bit_state

Anton Khirnov git at videolan.org
Thu Aug 1 11:16:57 EEST 2024


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Mon Jul  8 12:46:29 2024 +0200| [492df6520128f00e341999f454ea9986da2c9a11] | committer: Anton Khirnov

lavc/ffv1: drop write-only PlaneContext.interlace_bit_state

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=492df6520128f00e341999f454ea9986da2c9a11
---

 libavcodec/ffv1.c | 3 ---
 libavcodec/ffv1.h | 1 -
 2 files changed, 4 deletions(-)

diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index a102425596..6a0aca6429 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -169,9 +169,6 @@ void ff_ffv1_clear_slice_state(const FFV1Context *f, FFV1Context *fs)
     for (i = 0; i < f->plane_count; i++) {
         PlaneContext *p = &fs->plane[i];
 
-        p->interlace_bit_state[0] = 128;
-        p->interlace_bit_state[1] = 128;
-
         if (fs->ac != AC_GOLOMB_RICE) {
             if (f->initial_states[p->quant_table_index]) {
                 memcpy(p->state, f->initial_states[p->quant_table_index],
diff --git a/libavcodec/ffv1.h b/libavcodec/ffv1.h
index a87c2d2a36..a3f3b30b49 100644
--- a/libavcodec/ffv1.h
+++ b/libavcodec/ffv1.h
@@ -63,7 +63,6 @@ typedef struct PlaneContext {
     int context_count;
     uint8_t (*state)[CONTEXT_SIZE];
     VlcState *vlc_state;
-    uint8_t interlace_bit_state[2];
 } PlaneContext;
 
 #define MAX_SLICES 1024



More information about the ffmpeg-cvslog mailing list