Skip to content
Snippets Groups Projects
Commit 74bb1ca8 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

avutil/frame_copy_audio: also check that channels match

parent fff52623
No related branches found
No related tags found
No related merge requests found
...@@ -614,6 +614,7 @@ static int frame_copy_audio(AVFrame *dst, const AVFrame *src) ...@@ -614,6 +614,7 @@ static int frame_copy_audio(AVFrame *dst, const AVFrame *src)
int i; int i;
if (dst->nb_samples != src->nb_samples || if (dst->nb_samples != src->nb_samples ||
dst->channels != src->channels ||
dst->channel_layout != src->channel_layout) dst->channel_layout != src->channel_layout)
return AVERROR(EINVAL); return AVERROR(EINVAL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment