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:
@@ -184,7 +184,7 @@ static int cmap_read_palette(AVCodecContext *avctx, uint32_t *pal)
|
||||
*
|
||||
* @param avctx the AVCodecContext where to extract extra context to
|
||||
* @param avpkt the AVPacket to extract extra context from or NULL to use avctx
|
||||
* @return 0 in case of success, a negative error code otherwise
|
||||
* @return >= 0 in case of success, a negative error code otherwise
|
||||
*/
|
||||
static int extract_header(AVCodecContext *const avctx,
|
||||
const AVPacket *const avpkt) {
|
||||
|
Reference in New Issue
Block a user