1
mirror of https://github.com/mpv-player/mpv synced 2024-09-05 02:48:21 +02:00

Export flags needed for softpulldown filter.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10510 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ranma 2003-08-03 12:04:57 +00:00
parent 100951c1de
commit 81df985239
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -67,6 +67,7 @@ typedef struct {
#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 {