diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-10 00:33:15 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-10 01:11:32 +0100 |
commit | 999ee28124f3b636bfab7cc6cb77b13224e07583 (patch) | |
tree | 118d88cc9354c68e6c6106aed747f9d476b8b059 | |
parent | aae5c4d40e7fd961df9b4faee9ec4c4ef94456e1 (diff) | |
download | ffmpeg-999ee28124f3b636bfab7cc6cb77b13224e07583.tar.gz |
avcodec/utils: dont depend on the channel layout in unrefcount_frame()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index eeefcf24cf..ee873d7f04 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -2047,7 +2047,7 @@ static int unrefcount_frame(AVCodecInternal *avci, AVFrame *frame) memcpy(frame->data, avci->to_free->data, sizeof(frame->data)); memcpy(frame->linesize, avci->to_free->linesize, sizeof(frame->linesize)); if (avci->to_free->extended_data != avci->to_free->data) { - int planes = av_get_channel_layout_nb_channels(avci->to_free->channel_layout); + int planes = av_frame_get_channels(avci->to_free); int size = planes * sizeof(*frame->extended_data); if (!size) { |