diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-24 09:52:13 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-24 10:12:33 +0100 |
commit | 74bb1ca82c3bf604e460f581d9ac9dbe2af19448 (patch) | |
tree | 8eae88b440d1624f164dd3f98009986339d54fbb /libavutil/frame.c | |
parent | fff526230148b3a67c04c328eecb16efac654e68 (diff) | |
download | ffmpeg-74bb1ca82c3bf604e460f581d9ac9dbe2af19448.tar.gz |
avutil/frame_copy_audio: also check that channels match
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 9b4ecfcc0f..747aa79b8f 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -614,6 +614,7 @@ static int frame_copy_audio(AVFrame *dst, const AVFrame *src) int i; if (dst->nb_samples != src->nb_samples || + dst->channels != src->channels || dst->channel_layout != src->channel_layout) return AVERROR(EINVAL); |