[FFmpeg-devel] [PATCH v3] Added Turing codec interface for ffmpeg

Moritz Barsnick barsnick at gmx.net
Wed Dec 14 17:39:33 EET 2016


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


More information about the ffmpeg-devel mailing list