[FFmpeg-devel] [RFC] libavfilter query_format() related functions error handling
Nicolas George
george at nsup.org
Sat Mar 14 13:33:12 CET 2015
Le quartidi 24 ventôse, an CCXXIII, Michael Niedermayer a écrit :
> ff_set_common_channel_layouts(ctx, ff_all_channel_layouts());
> ff_set_common_formats(ctx, ff_make_format_list(sample_fmts));
> ff_set_common_samplerates(ctx, ff_all_samplerates());
>
> return ctx->ff_errno;
I wanted to suggest something along this line too. Since the functions are
private and can be changed, I suspect the error code would be better carried
around in a value passed as argument.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150314/98321715/attachment.asc>
More information about the ffmpeg-devel
mailing list