diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-21 18:47:50 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-25 11:49:42 -0500 |
commit | 928672f1f193167a5876cd5e00c904d4f6b52b4a (patch) | |
tree | c7aa6e2a393d319dcd21f36fd0623d014f28f057 /libavcodec/nellymoserenc.c | |
parent | 370b44cda2230cf839f7c3849a3b881650fe1bd8 (diff) | |
download | ffmpeg-928672f1f193167a5876cd5e00c904d4f6b52b4a.tar.gz |
nellymoserenc: set AVCodecContext.coded_frame
Diffstat (limited to 'libavcodec/nellymoserenc.c')
-rw-r--r-- | libavcodec/nellymoserenc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/nellymoserenc.c b/libavcodec/nellymoserenc.c index 4f351dabe4..e60b0b5afa 100644 --- a/libavcodec/nellymoserenc.c +++ b/libavcodec/nellymoserenc.c @@ -137,6 +137,7 @@ static av_cold int encode_end(AVCodecContext *avctx) av_free(s->opt); av_free(s->path); } + av_freep(&avctx->coded_frame); return 0; } @@ -179,6 +180,12 @@ static av_cold int encode_init(AVCodecContext *avctx) } } + avctx->coded_frame = avcodec_alloc_frame(); + if (!avctx->coded_frame) { + ret = AVERROR(ENOMEM); + goto error; + } + return 0; error: encode_end(avctx); |