[FFmpeg-devel] [PATCH]Plausibility check for TrueHD channel_layout
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Apr 1 00:32:13 CEST 2011
Michael Niedermayer <michaelni <at> gmx.at> writes:
> > + if (av_popcount(avctx->channel_layout) != avctx->channels) {
> > + avctx->channel_layout = 0;
> > + av_log_ask_for_sample(avctx, "Unknown channel layout.");
> > + }
> > }
>
> i think this shoulds be a if() level further outside
The condition can only be true for TrueHD streams, or do I miss something?
Carl Eugen
More information about the ffmpeg-devel
mailing list