mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
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>
This commit is contained in:
parent
7ed9abf793
commit
f8ba7c4658
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user