Andreas Rheinhardt (12020-08-24): > expects > switch to
> preferred
Locally fixed.
> > + if (fmts->all_layouts < fmts->all_counts ||
> > + (!fmts->all_layouts && !fmts->nb_channel_layouts)) {
>
> As has already been said in my review of the first version:
> This check doesn't fit to the error message and it also makes the next
> check below dead code.
I missed the first review, sorry.
The error message is correct: it is inconsistent to accept all counts
without accepting all layouts.
And the next test is not dead code: if all_counts and all_layouts are 0,
and nb_channel_layouts is also 0, it is triggered.
Or am I missing something?
>
> > + av_log(log, AV_LOG_ERROR, "Inconsistent generic list\n");
> > + return AVERROR(EINVAL);
> > + }
> > + if (!fmts->all_layouts && !fmts->nb_channel_layouts) {
> > + av_log(log, AV_LOG_ERROR, "Empty channel layout list\n");
> > + return AVERROR(EINVAL);
> > + }
Regards,
--
Nicolas George
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
