diff options
author | Dirk Ausserhaus <dausserhaus@gmail.com> | 2014-05-29 13:30:37 +0200 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2014-06-01 08:53:27 +0200 |
commit | f76e3669bb350ca6df150244f3d28d7dc5599f01 (patch) | |
tree | 03a04c224b281ef39edded2a1803a7174f64ca07 /libavcodec/indeo4.c | |
parent | 3df0d20028cb9d2daca16ac0dc6c3ab77183da37 (diff) | |
download | ffmpeg-f76e3669bb350ca6df150244f3d28d7dc5599f01.tar.gz |
Decode both parts of Indeo4 IP frames
Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
Diffstat (limited to 'libavcodec/indeo4.c')
-rw-r--r-- | libavcodec/indeo4.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; } |