Mercurial > mplayer.hg
changeset 10509:d9d24093db2e
Export flags needed for softpulldown filter.
author | ranma |
---|---|
date | Sun, 03 Aug 2003 12:04:57 +0000 |
parents | e2a88f1d47f6 |
children | 73b3e4336cd4 |
files | libmpeg2/header.c libmpeg2/mpeg2.h |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpeg2/header.c Sat Aug 02 18:45:24 2003 +0000 +++ b/libmpeg2/header.c Sun Aug 03 12:04:57 2003 +0000 @@ -506,7 +506,8 @@ 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;
--- a/libmpeg2/mpeg2.h Sat Aug 02 18:45:24 2003 +0000 +++ b/libmpeg2/mpeg2.h Sun Aug 03 12:04:57 2003 +0000 @@ -67,6 +67,7 @@ #define PIC_FLAG_COMPOSITE_DISPLAY 32 #define PIC_FLAG_SKIP 64 #define PIC_FLAG_PTS 128 +#define PIC_FLAG_REPEAT_FIRST_FIELD 256 #define PIC_MASK_COMPOSITE_DISPLAY 0xfffff000 typedef struct {