mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mpeg12dec: reset first_field with picture_structure changes.
Fixes Ticket809 Bug found by: Oana Stratulat Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1fbb859cdf
commit
a40f6a5c69
@ -2033,6 +2033,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
|
|||||||
s->progressive_sequence = 1;
|
s->progressive_sequence = 1;
|
||||||
s->progressive_frame = 1;
|
s->progressive_frame = 1;
|
||||||
s->picture_structure = PICT_FRAME;
|
s->picture_structure = PICT_FRAME;
|
||||||
|
s->first_field = 0;
|
||||||
s->frame_pred_frame_dct = 1;
|
s->frame_pred_frame_dct = 1;
|
||||||
s->chroma_format = 1;
|
s->chroma_format = 1;
|
||||||
s->codec_id = s->avctx->codec_id = CODEC_ID_MPEG1VIDEO;
|
s->codec_id = s->avctx->codec_id = CODEC_ID_MPEG1VIDEO;
|
||||||
@ -2092,6 +2093,7 @@ static int vcr2_init_sequence(AVCodecContext *avctx)
|
|||||||
s->progressive_sequence = 1;
|
s->progressive_sequence = 1;
|
||||||
s->progressive_frame = 1;
|
s->progressive_frame = 1;
|
||||||
s->picture_structure = PICT_FRAME;
|
s->picture_structure = PICT_FRAME;
|
||||||
|
s->first_field = 0;
|
||||||
s->frame_pred_frame_dct = 1;
|
s->frame_pred_frame_dct = 1;
|
||||||
s->chroma_format = 1;
|
s->chroma_format = 1;
|
||||||
s->codec_id = s->avctx->codec_id = CODEC_ID_MPEG2VIDEO;
|
s->codec_id = s->avctx->codec_id = CODEC_ID_MPEG2VIDEO;
|
||||||
|
Loading…
Reference in New Issue
Block a user