diff --git a/libavcodec/atrac3.c b/libavcodec/atrac3.c index 0e6d184259585ed897aa5026de86733fd786997c..ab54c5708a9fe81d1adc5963c14af7af8899de62 100644 --- a/libavcodec/atrac3.c +++ b/libavcodec/atrac3.c @@ -1007,7 +1007,7 @@ static int atrac3_decode_init(AVCodecContext *avctx) /* Pad the data buffer with FF_INPUT_BUFFER_PADDING_SIZE, * this is for the bitstream reader. */ if ((q->decoded_bytes_buffer = av_mallocz((avctx->block_align+(4-avctx->block_align%4) + FF_INPUT_BUFFER_PADDING_SIZE))) == NULL) - return -1; + return AVERROR(ENOMEM); /* Initialize the VLC tables. */