avutil/frame_copy_audio: also check that channels match
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Feb 2014 08:52:13 +0000 (09:52 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 24 Feb 2014 09:12:33 +0000 (10:12 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/frame.c

index 9b4ecfc..747aa79 100644 (file)
@@ -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);