aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-03-11 17:18:46 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-03-12 03:23:51 +0100
commit9dd0b7ad821ae1b60acd9ac8f6384c03bd28be51 (patch)
treec1f854365ddf74b8b65beeb5dc14e6218fbf01bf /libavcodec/utils.c
parent80e9e63c946660304fc65fa8141ccfdbe4d196d1 (diff)
downloadffmpeg-9dd0b7ad821ae1b60acd9ac8f6384c03bd28be51.tar.gz
update_frame_pool: use channel field
Fix memory corruption Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d68c28093b..9085dfe37d 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -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;