mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-10 06:28:06 +00:00
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:
parent
a9709b3c83
commit
1a5452655a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user