On Wed, Dec 14, 2016 at 14:23:05 +0000, Matteo Naccari wrote:

> Ok, point taken on the av_* functions. On the handling bit, I was
> thinking to flag the error via av_log and then call exit_program(1),
> after, of course, having released the memory allocated up to that
> point. Would that be ok?

Certainly not, as exit_program() is for the programs, and neither
available for nor acceptable in a library. In the library, you need to
provide "exit" paths, and pass proper return/error codes through the
functions and to the API. (Use of av_log(): Yes, where appropriate.)

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

Reply via email to