[FFmpeg-devel] 0001-Avoid-segfault-in-a64_write_header-when-stream-codec.patch

Nicolas George george at nsup.org
Mon Aug 18 18:42:35 CEST 2014


Le primidi 1er fructidor, an CCXXII, Andrey Myznikov a écrit :
> Additionally, in 'default' section of switch() statement here, I
> propose to return AVERROR(ENOTSUP) instead of AVERROR_INVALIDDATA,
> because it is more clear to get someting like
>      "avformat_write_header() fails: Operation not supported"
> 
> instread  of
>      "avformat_write_header() fails: Invalid data found when
> processing input"
> 
> when we do output, but do not input.

Unfortunately:

ENOTSUP          POSIX     +++...  Operation not supported

The three dots show that ENOTSUP does not exist on windows and BeOS, so it
can not be used in generic code.

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/20140818/0cf402ab/attachment.asc>


More information about the ffmpeg-devel mailing list