diff mbox series

[FFmpeg-devel,14/39] lavc/ffv1: drop write-only PlaneContext.interlace_bit_state

Message ID 20240716171155.31838-14-anton@khirnov.net
State New
Headers show
Series [FFmpeg-devel,01/39] tests/fate/vcodec: add vsynth tests for FFV1 version 2 | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov July 16, 2024, 5:11 p.m. UTC
---
 libavcodec/ffv1.c | 3 ---
 libavcodec/ffv1.h | 1 -
 2 files changed, 4 deletions(-)

Comments

Michael Niedermayer July 24, 2024, 7:12 p.m. UTC | #1
On Tue, Jul 16, 2024 at 07:11:29PM +0200, Anton Khirnov wrote:
> ---
>  libavcodec/ffv1.c | 3 ---
>  libavcodec/ffv1.h | 1 -
>  2 files changed, 4 deletions(-)

ok

thx

[...]
diff mbox series

Patch

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