summaryrefslogtreecommitdiffstats
path: root/libavcodec/mpeg4videodec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-30 04:21:45 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-30 04:23:43 +0100
commitae4e7f7ba603a1624d4aaeee2c368677739b7322 (patch)
tree29ea5c72f1e2be65b88f16a5974d7e50851cb594 /libavcodec/mpeg4videodec.c
parentb27ba2e540b873fe8e50280a734194ada002a077 (diff)
parent58c120a9290eef057dbf26761a4f89b7f67bbde1 (diff)
downloadffmpeg-streaming-ae4e7f7ba603a1624d4aaeee2c368677739b7322.zip
ffmpeg-streaming-ae4e7f7ba603a1624d4aaeee2c368677739b7322.tar.gz
Merge commit '58c120a9290eef057dbf26761a4f89b7f67bbde1'
* commit '58c120a9290eef057dbf26761a4f89b7f67bbde1': mpeg4videodec: move scalability from MpegEncContext to Mpeg4DecContext Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mpeg4videodec.c')
-rw-r--r--libavcodec/mpeg4videodec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 8a934b5..bda8c5e 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -1991,9 +1991,9 @@ no_cplx_est:
ctx->new_pred = 0;
}
- s->scalability = get_bits1(gb);
+ ctx->scalability = get_bits1(gb);
- if (s->scalability) {
+ if (ctx->scalability) {
GetBitContext bak = *gb;
int h_sampling_factor_n;
int h_sampling_factor_m;
@@ -2013,7 +2013,7 @@ no_cplx_est:
v_sampling_factor_n == 0 || v_sampling_factor_m == 0) {
/* illegal scalability header (VERY broken encoder),
* trying to workaround */
- s->scalability = 0;
+ ctx->scalability = 0;
*gb = bak;
} else
av_log(s->avctx, AV_LOG_ERROR, "scalability not supported\n");
@@ -2028,7 +2028,7 @@ no_cplx_est:
ctx->time_increment_bits,
s->quant_precision,
s->progressive_sequence,
- s->scalability ? "scalability " :"" , s->quarter_sample ? "qpel " : "",
+ ctx->scalability ? "scalability " :"" , s->quarter_sample ? "qpel " : "",
s->data_partitioning ? "partition " : "", ctx->rvlc ? "rvlc " : ""
);
}
@@ -2441,7 +2441,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
);
}
- if (!s->scalability) {
+ if (!ctx->scalability) {
if (ctx->shape != RECT_SHAPE && s->pict_type != AV_PICTURE_TYPE_I)
skip_bits1(gb); // vop shape coding type
} else {
OpenPOWER on IntegriCloud