[3.0] ffmpeg: backport more channel checks
And use separate macros when checking for libav so that checking FFmpeg only uses he same macros as 4.0
And use separate macros when checking for libav so that checking FFmpeg only uses he same macros as 4.0
VideoLAN code repository instance