mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-29 02:42:21 +00:00
update_frame_pool: use channel field
Fix memory corruption Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
80e9e63c94
commit
9dd0b7ad82
@ -420,7 +420,7 @@ static int update_frame_pool(AVCodecContext *avctx, AVFrame *frame)
|
||||
break;
|
||||
}
|
||||
case AVMEDIA_TYPE_AUDIO: {
|
||||
int ch = av_get_channel_layout_nb_channels(frame->channel_layout);
|
||||
int ch = av_frame_get_channels(frame); //av_get_channel_layout_nb_channels(frame->channel_layout);
|
||||
int planar = av_sample_fmt_is_planar(frame->format);
|
||||
int planes = planar ? ch : 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user