[FFmpeg-devel] [PATCHv2 1/4] avfilter/all: check and propagate the return code of av_expr_parse_and_eval

Nicolas George george at nsup.org
Sun Nov 1 23:46:20 CET 2015


Le primidi 11 brumaire, an CCXXIV, Michael Niedermayer a écrit :
> less fragile could be ret < 0 && ret != the error code generated by NaN
> i dont know what to do about the clutter or if this approuch makes
> sense or if just droping the return warning for av_expr_parse_and_eval
> would be better ...

The current code does not crash when errors happens (and ENOMEM doest not
happen for this kind of small allocation anyway), my advice is that it is
better left as is.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151101/17415ce6/attachment.sig>


More information about the ffmpeg-devel mailing list