[FFmpeg-cvslog] avcodec/mpeg12dec: Remove redundant check
Andreas Rheinhardt
git at videolan.org
Mon Apr 8 16:18:26 EEST 2024
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Fri Apr 5 10:59:31 2024 +0200| [1a5452655aeebe832e84561769e81e2c3062a8a9] | committer: Andreas Rheinhardt
avcodec/mpeg12dec: Remove redundant check
This code only gets executed for the first field.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1a5452655aeebe832e84561769e81e2c3062a8a9
---
libavcodec/mpeg12dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) {
More information about the ffmpeg-cvslog
mailing list