1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

nellymoserenc: set AVCodecContext.coded_frame

This commit is contained in:
Justin Ruggles 2012-02-21 18:47:50 -05:00
parent 370b44cda2
commit 928672f1f1

View File

@ -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);