From f76e3669bb350ca6df150244f3d28d7dc5599f01 Mon Sep 17 00:00:00 2001 From: Dirk Ausserhaus Date: Thu, 29 May 2014 13:30:37 +0200 Subject: Decode both parts of Indeo4 IP frames Signed-off-by: Kostya Shishkov --- libavcodec/indeo4.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavcodec/indeo4.c') diff --git a/libavcodec/indeo4.c b/libavcodec/indeo4.c index ca81d62c57..3e97221229 100644 --- a/libavcodec/indeo4.c +++ b/libavcodec/indeo4.c @@ -620,6 +620,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; } -- cgit v1.2.3