aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2012-03-24 15:28:51 +0000
committerMichael Niedermayer <michaelni@gmx.at>2012-03-24 17:52:53 +0100
commitf8ba7c46587d3c690d5491dc9fdfe20a4faad902 (patch)
tree55d0b3336b13fab295b63256f9bcd4216b0e8ad6
parent7ed9abf79301037032b97eb7dc6f0b53dc52aa6e (diff)
downloadffmpeg-f8ba7c46587d3c690d5491dc9fdfe20a4faad902.tar.gz
adxenc: fix error in merging from qatar
Pointed out by FATE. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/adxenc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libavcodec/adxenc.c b/libavcodec/adxenc.c
index ca472e0f9d..bcb8967266 100644
--- a/libavcodec/adxenc.c
+++ b/libavcodec/adxenc.c
@@ -118,9 +118,8 @@ static av_cold int adx_encode_init(AVCodecContext *avctx)
avctx->frame_size = BLOCK_SAMPLES;
#if FF_API_OLD_ENCODE_AUDIO
- avctx->coded_frame = avcodec_alloc_frame();
- if (!avctx->coded_frame)
- return AVERROR(ENOMEM);
+ avcodec_get_frame_defaults(&c->frame);
+ avctx->coded_frame = &c->frame;
#endif
/* the cutoff can be adjusted, but this seems to work pretty well */