[FFmpeg-devel] [PATCH] avcodec/mpeg12enc: replace return -1 with proper error codes

Nicolas George george at nsup.org
Thu May 7 12:18:17 EEST 2020


lance.lmwang at gmail.com (12020-05-07):
> Yeah, then I had to change the ff_mpv_encode_init() return with accurate error code also.

If necessary yes. But it can be done later if you have other priorities.
But I consider better to correctly forward an invalid error code than to
incorrectly invent a new error code. One would be fixed later, the other
not.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20200507/7e0d98c6/attachment.sig>


More information about the ffmpeg-devel mailing list