aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-11-26 14:34:52 +0100
committerAnton Khirnov <anton@khirnov.net>2013-11-29 17:36:05 +0100
commit6e81597d5a89f64dfab5c7e99e46b4355139e324 (patch)
tree74f093c9091bdadcda475c58541201ee247f87ff
parent2992afda83a7d5c0a9ec45bdce76d8abbe0961c5 (diff)
downloadffmpeg-6e81597d5a89f64dfab5c7e99e46b4355139e324.tar.gz
mpeg4videodec: move enhancement_type from MpegEncContext to Mpeg4DecContext
-rw-r--r--libavcodec/mpeg4video.h1
-rw-r--r--libavcodec/mpeg4videodec.c4
-rw-r--r--libavcodec/mpegvideo.h1
3 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/mpeg4video.h b/libavcodec/mpeg4video.h
index 6a143e1eb4..6337a08208 100644
--- a/libavcodec/mpeg4video.h
+++ b/libavcodec/mpeg4video.h
@@ -74,6 +74,7 @@ typedef struct Mpeg4DecContext {
int t_frame;
int new_pred;
+ int enhancement_type;
/* bug workarounds */
int divx_version;
diff --git a/libavcodec/mpeg4videodec.c b/libavcodec/mpeg4videodec.c
index 32ffbb8700..114d24598f 100644
--- a/libavcodec/mpeg4videodec.c
+++ b/libavcodec/mpeg4videodec.c
@@ -1969,7 +1969,7 @@ no_cplx_est:
h_sampling_factor_m = get_bits(gb, 5);
v_sampling_factor_n = get_bits(gb, 5);
v_sampling_factor_m = get_bits(gb, 5);
- s->enhancement_type = get_bits1(gb);
+ ctx->enhancement_type = get_bits1(gb);
if (h_sampling_factor_n == 0 || h_sampling_factor_m == 0 ||
v_sampling_factor_n == 0 || v_sampling_factor_m == 0) {
@@ -2253,7 +2253,7 @@ static int decode_vop_header(Mpeg4DecContext *ctx, GetBitContext *gb)
if (ctx->shape != RECT_SHAPE && s->pict_type != AV_PICTURE_TYPE_I)
skip_bits1(gb); // vop shape coding type
} else {
- if (s->enhancement_type) {
+ if (ctx->enhancement_type) {
int load_backward_shape = get_bits1(gb);
if (load_backward_shape)
av_log(s->avctx, AV_LOG_ERROR,
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 97a3a72562..55e61da520 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -590,7 +590,6 @@ typedef struct MpegEncContext {
int quant_precision;
int quarter_sample; ///< 1->qpel, 0->half pel ME/MC
int scalability;
- int enhancement_type;
int aspect_ratio_info; //FIXME remove
int sprite_warping_accuracy;
int data_partitioning; ///< data partitioning flag from header