Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-11-19 02:21:20 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-11-19 02:21:20 +0400
commitf0f04fd8429475999bde08943e29a678cab3926e (patch)
treee60007cf287826c3f6809bdf3ccf2e8fc8d96970 /libavcodec/asvenc.c
parent918cab1a9f68ed37e7bf8faf96f1fd88651ee607 (diff)
avcodec/asvenc: remove code allocating dummy coded_frame
Fixes memleak Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/asvenc.c')
-rw-r--r--libavcodec/asvenc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libavcodec/asvenc.c b/libavcodec/asvenc.c
index 066dbbab8b..dd3d4f5a50 100644
--- a/libavcodec/asvenc.c
+++ b/libavcodec/asvenc.c
@@ -237,12 +237,6 @@ static av_cold int encode_init(AVCodecContext *avctx){
int i;
const int scale= avctx->codec_id == AV_CODEC_ID_ASV1 ? 1 : 2;
- avctx->coded_frame = av_frame_alloc();
- if (!avctx->coded_frame)
- return AVERROR(ENOMEM);
- avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
- avctx->coded_frame->key_frame = 1;
-
ff_asv_common_init(avctx);
if(avctx->global_quality == 0) avctx->global_quality= 4*FF_QUALITY_SCALE;