Commit 928672f1 authored by Justin Ruggles's avatar Justin Ruggles

nellymoserenc: set AVCodecContext.coded_frame

parent 370b44cd
...@@ -137,6 +137,7 @@ static av_cold int encode_end(AVCodecContext *avctx) ...@@ -137,6 +137,7 @@ static av_cold int encode_end(AVCodecContext *avctx)
av_free(s->opt); av_free(s->opt);
av_free(s->path); av_free(s->path);
} }
av_freep(&avctx->coded_frame);
return 0; return 0;
} }
...@@ -179,6 +180,12 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -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; return 0;
error: error:
encode_end(avctx); encode_end(avctx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment