James Almer (12021-05-11): > An alternative solution is introducing a struct containing all variables > used by the process, including {input,output}_format_context, > {input,output}_codec_context, resample_context, fifo, and pts, which will > simplify the code a lot by making every function in the example take a > single argument for all of them, so that should address your concerns about > making the example more complex.
I agree, this would make the example more readable and clear. > Our library usage examples should not result in people making mistakes like > this when used as reference, so removing this global variable is a good > idea. If somebody follows the example without bothering to wonder what the various pieces of code do, they will get something wrong. Regards, -- Nicolas George
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".