summaryrefslogtreecommitdiff
path: root/libavcodec/indeo4.c
diff options
context:
space:
mode:
authorDirk Ausserhaus <dausserhaus@gmail.com>2014-05-29 13:30:37 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-05-30 13:49:42 +0200
commit8bfb4d72dd9324fda14bb49dda3468ccba5873e2 (patch)
tree3e28e92deb34a715eda4f0e98eaeff0f03c38412 /libavcodec/indeo4.c
parentd24673a2c80418c3c14dad523619f44f3ca8cb58 (diff)
avcodec/indeo4: Decode both parts of IP frames
Fixes part of Ticket845 av_frame_move_ref() idea by Anton Khirnov Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/indeo4.c')
-rw-r--r--libavcodec/indeo4.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c
index cee9badbf8..ada44af17f 100644
--- a/libavcodec/indeo4.c
+++ b/libavcodec/indeo4.c
@@ -663,6 +663,10 @@ static av_cold int decode_init(AVCodecContext *avctx)
ctx->switch_buffers = switch_buffers;
ctx->is_nonnull_frame = is_nonnull_frame;
+ ctx->p_frame = av_frame_alloc();
+ if (!ctx->p_frame)
+ return AVERROR(ENOMEM);
+
return 0;
}