[FFmpeg-cvslog] adxenc: fix error in merging from qatar

Paul B Mahol git at videolan.org
Sat Mar 24 18:18:26 CET 2012


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Mar 24 15:28:51 2012 +0000| [f8ba7c46587d3c690d5491dc9fdfe20a4faad902] | committer: Michael Niedermayer

adxenc: fix error in merging from qatar

Pointed out by FATE.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f8ba7c46587d3c690d5491dc9fdfe20a4faad902
---

 libavcodec/adxenc.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavcodec/adxenc.c b/libavcodec/adxenc.c
index ca472e0..bcb8967 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 */



More information about the ffmpeg-cvslog mailing list