summaryrefslogtreecommitdiff
path: root/libavcodec/error_resilience.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2015-01-17 17:16:20 +0100
committerAnton Khirnov <anton@khirnov.net>2015-01-27 09:07:59 +0100
commitcf1e0786ed64e69614760bfb4ecd7adbde8e6094 (patch)
tree3f9950cdc5d877b7d21ed8de8508b75e294d7bf3 /libavcodec/error_resilience.h
parenta7e0380497306d9723dec8440a4c52e8bf0263cf (diff)
error_resilience: move the MECmpContext initialization into ER code
Currently, it needs to be initialized by the ER caller (which is currently either a mpegvideo decoder or h264dec). However, since none of those decoders use MECmpContext for anything except ER, it makes more sense to handle it purely inside ER.
Diffstat (limited to 'libavcodec/error_resilience.h')
-rw-r--r--libavcodec/error_resilience.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/error_resilience.h b/libavcodec/error_resilience.h
index 7b9ec1918e..611b529311 100644
--- a/libavcodec/error_resilience.h
+++ b/libavcodec/error_resilience.h
@@ -52,7 +52,8 @@ typedef struct ERPicture {
typedef struct ERContext {
AVCodecContext *avctx;
- MECmpContext *mecc;
+ MECmpContext mecc;
+ int mecc_inited;
int *mb_index2xy;
int mb_num;