diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-10 11:04:28 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-13 08:25:10 +0100 |
commit | 42d30c9019a6b67c56b05f1828fa04c0439a4fd0 (patch) | |
tree | 6da5ad5f835f80153fb8ac3fb08a70b19ede88da /libavcodec/svq3.c | |
parent | 75a3268beea691c73c8bb202a2d4a6d61a97234a (diff) |
avcodec/mpegvideo, svq3: Remove unused next_p_frame_damaged
Always zero since 4d2858deac5213eaddfdc06f98379b6325d7b953.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/svq3.c')
-rw-r--r-- | libavcodec/svq3.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libavcodec/svq3.c b/libavcodec/svq3.c index e329578af0..6f3ade8ace 100644 --- a/libavcodec/svq3.c +++ b/libavcodec/svq3.c @@ -98,7 +98,6 @@ typedef struct SVQ3Context { int has_watermark; uint32_t watermark_key; int adaptive_quant; - int next_p_frame_damaged; int h_edge_pos; int v_edge_pos; int last_frame_output; @@ -1470,13 +1469,6 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data, avctx->skip_frame >= AVDISCARD_ALL) return 0; - if (s->next_p_frame_damaged) { - if (s->pict_type == AV_PICTURE_TYPE_B) - return 0; - else - s->next_p_frame_damaged = 0; - } - if (s->pict_type == AV_PICTURE_TYPE_B) { s->frame_num_offset = s->slice_num - s->prev_frame_num; |