diff options
author | Marton Balint <cus@passwd.hu> | 2017-01-30 01:33:18 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2017-01-31 00:29:49 +0100 |
commit | d25769555bb3e73c811da05d309856883ff41a9f (patch) | |
tree | 5de05f63a27d6d848ef5efa221632676ac37d2b1 /libavutil | |
parent | 06c143e505779efbc1d0b551b2615f010d5eb6fa (diff) | |
download | ffmpeg-streaming-d25769555bb3e73c811da05d309856883ff41a9f.zip ffmpeg-streaming-d25769555bb3e73c811da05d309856883ff41a9f.tar.gz |
avutil/frame: fix av_frame_copy for unknown layouts
I wonder how unknown layouts ever worked without this?
Reviewed-by: Nicolas George <george@nsup.org>
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index c2f5509..a08e0c5 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -725,7 +725,7 @@ int av_frame_copy(AVFrame *dst, const AVFrame *src) if (dst->width > 0 && dst->height > 0) return frame_copy_video(dst, src); - else if (dst->nb_samples > 0 && dst->channel_layout) + else if (dst->nb_samples > 0 && dst->channels > 0) return frame_copy_audio(dst, src); return AVERROR(EINVAL); |