diff options
Diffstat (limited to 'libmpeg2/header.c')
-rw-r--r-- | libmpeg2/header.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpeg2/header.c b/libmpeg2/header.c index 38b833fa8a..e8a39939e6 100644 --- a/libmpeg2/header.c +++ b/libmpeg2/header.c @@ -506,7 +506,8 @@ static int picture_coding_ext (mpeg2dec_t * mpeg2dec) case FRAME_PICTURE: if (!(mpeg2dec->sequence.flags & SEQ_FLAG_PROGRESSIVE_SEQUENCE)) { picture->nb_fields = (buffer[3] & 2) ? 3 : 2; - flags |= (buffer[3] & 128) ? PIC_FLAG_TOP_FIELD_FIRST : 0; + flags |= (buffer[3] & 128) ? PIC_FLAG_TOP_FIELD_FIRST : 0; + flags |= (buffer[3] & 2) ? PIC_FLAG_REPEAT_FIRST_FIELD : 0; } else picture->nb_fields = (buffer[3]&2) ? ((buffer[3]&128) ? 6 : 4) : 2; break; |