mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
Replace a return of -1 with ENOMEM.
Originally committed as revision 9813 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
794f8e976b
commit
6611c0b4c9
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user