[FFmpeg-devel] [PATCH 08/17] avformat/mxfenc: Improve returned error codes

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Wed Nov 10 15:07:02 EET 2021


Tomas Härdin:
> tis 2021-11-09 klockan 19:01 +0100 skrev Andreas Rheinhardt:
>> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
>> ---
>>  libavformat/mxfenc.c | 16 ++++++++--------
>>  1 file changed, 8 insertions(+), 8 deletions(-)
> 
> Aha, this one does exactly what I just suggested with return values.
> D'oh!
> 

No. It only does this with the errors from init, not from write_packet.
The reason for this is that the other errors often blur the line between
AVERROR(EINVAL) and AVERROR_INVALIDDATA, so I decided to do nothing
about them.

- Andreas


More information about the ffmpeg-devel mailing list