On 28.01.2017 12:44, Marton Balint wrote:
> If we reduce the number of extra lines (not at any cost), I think that helps.
> There is also a solution which keeps the traditional C syntax, and is easy to 
> undestand even at first glance.
> 
> if (st->codecpar->channels > FF_SANE_NB_CHANNELS)
>     return ff_elog(AVERROR(ENOSYS), s, "Too many channels %d > %d\n", 
> st->codecpar->channels, FF_SANE_NB_CHANNELS);

How would you define ff_elog for this to work?

Best regards,
Andreas

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to