diff mbox series

[FFmpeg-devel] avformat/dvdvideodec: Remove unused cell count variable

Message ID 20240704002947.1617897-1-marth64@proxyid.net
State New
Headers show
Series [FFmpeg-devel] avformat/dvdvideodec: Remove unused cell count variable | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 fail Make fate failed
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marth64 July 4, 2024, 12:29 a.m. UTC
Signed-off-by: Marth64 <marth64@proxyid.net>
---
 libavformat/dvdvideodec.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Anton Khirnov July 5, 2024, 6:41 a.m. UTC | #1
Quoting Marth64 (2024-07-04 02:29:47)
> Signed-off-by: Marth64 <marth64@proxyid.net>
> ---
>  libavformat/dvdvideodec.c | 2 --
>  1 file changed, 2 deletions(-)

Looks trivially ok, will push
diff mbox series

Patch

diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c
index 5c9d578aaf..7a859071c3 100644
--- a/libavformat/dvdvideodec.c
+++ b/libavformat/dvdvideodec.c
@@ -111,7 +111,6 @@  typedef struct DVDVideoPlaybackState {
     int                         in_ps;              /* if our navigator is in the program stream */
     int                         in_vts;             /* if our navigator is in the VTS */
     int64_t                     nav_pts;            /* PTS according to IFO, not frame-accurate */
-    int                         nb_cells_played;    /* number of cells played back so far */
     uint64_t                    pgc_duration_est;   /* estimated duration as reported by IFO */
     uint64_t                    pgc_elapsed;        /* the elapsed time of the PGC, cell-relative */
     int                         pgc_nb_pg_est;      /* number of PGs as reported by IFOs */
@@ -723,7 +722,6 @@  static int dvdvideo_play_next_ps_block(AVFormatContext *s, DVDVideoPlaybackState
                 state->celln = e_cell->cellN;
                 state->ptt = cur_ptt;
                 state->pgn = cur_pgn;
-                state->nb_cells_played++;
 
                 continue;
             case DVDNAV_NAV_PACKET: