Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-06-16 22:30:33 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-06-22 12:49:55 +0400
commit9e0dd82e27a36a077b659f1762b3ad7732032a78 (patch)
treec55125632660cbd79d61cfd43cd3ccf44ca85204 /libavcodec/mpeg12dec.c
parentad105762a6c261ef0cd1961f7829206e5b0e1092 (diff)
HACK: avcodec: export progressive_sequence informationmpc-hc-1.6.9-1lav0.58
Diffstat (limited to 'libavcodec/mpeg12dec.c')
-rw-r--r--libavcodec/mpeg12dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mpeg12dec.c b/libavcodec/mpeg12dec.c
index c6861519de..54e3347bc8 100644
--- a/libavcodec/mpeg12dec.c
+++ b/libavcodec/mpeg12dec.c
@@ -1325,6 +1325,7 @@ static void mpeg_decode_sequence_extension(Mpeg1Context *s1)
skip_bits(&s->gb, 1); /* profile and level esc*/
s->avctx->profile = get_bits(&s->gb, 3);
s->avctx->level = get_bits(&s->gb, 4);
+ s->avctx->progressive_sequence =
s->progressive_sequence = get_bits1(&s->gb); /* progressive_sequence */
s->chroma_format = get_bits(&s->gb, 2); /* chroma_format 1=420, 2=422, 3=444 */
horiz_size_ext = get_bits(&s->gb, 2);
@@ -1976,6 +1977,7 @@ static int mpeg1_decode_sequence(AVCodecContext *avctx,
}
/* we set MPEG-2 parameters so that it emulates MPEG-1 */
+ s->avctx->progressive_sequence =
s->progressive_sequence = 1;
s->progressive_frame = 1;
s->picture_structure = PICT_FRAME;
@@ -2029,6 +2031,7 @@ static int vcr2_init_sequence(AVCodecContext *avctx)
s->chroma_inter_matrix[j] = v;
}
+ s->avctx->progressive_sequence =
s->progressive_sequence = 1;
s->progressive_frame = 1;
s->picture_structure = PICT_FRAME;