avcodec/mpeg12dec: Remove redundant check

This code only gets executed for the first field.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2024-04-05 10:59:31 +02:00
parent a9709b3c83
commit 1a5452655a

View File

@ -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) {