diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-05 10:59:31 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-04-08 15:00:01 +0200 |
commit | 1a5452655aeebe832e84561769e81e2c3062a8a9 (patch) | |
tree | 75be73fc9ab5509e814c45a7ff503df986ea1384 | |
parent | a9709b3c8382a8eb9a118e77efc9f357760d999e (diff) |
avcodec/mpeg12dec: Remove redundant check
This code only gets executed for the first field.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/mpeg12dec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c index fb8bba3287..83ff40d237 100644 --- a/libavcodec/mpeg12dec.c +++ b/libavcodec/mpeg12dec.c @@ -1301,7 +1301,7 @@ static int mpeg_field_start(MpegEncContext *s, const uint8_t *buf, int buf_size) if (s->picture_structure != PICT_FRAME) { s->current_picture_ptr->f->flags |= AV_FRAME_FLAG_TOP_FIELD_FIRST * - ((s->picture_structure == PICT_TOP_FIELD) == s->first_field); + (s->picture_structure == PICT_TOP_FIELD); for (int i = 0; i < 4; i++) { if (s->picture_structure == PICT_BOTTOM_FIELD) { |