Do not leave positive values undefined when negative are defined as error
Define positive return values as non errors and leave further meaning undefined This allows future extensions to use these values Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -34,7 +34,7 @@
|
||||
* @param pix_fmt pointer to the pixel format of the loaded image
|
||||
* @param filename the name of the image file to load
|
||||
* @param log_ctx log context
|
||||
* @return 0 in case of success, a negative error code otherwise.
|
||||
* @return >= 0 in case of success, a negative error code otherwise.
|
||||
*/
|
||||
int ff_load_image(uint8_t *data[4], int linesize[4],
|
||||
int *w, int *h, enum AVPixelFormat *pix_fmt,
|
||||
|
Reference in New Issue
Block a user