mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-18 23:35:06 +02:00
alacenc: return AVERROR codes in alac_encode_frame()
This commit is contained in:
parent
302daf5800
commit
65d15aec77
@ -527,7 +527,7 @@ static int alac_encode_frame(AVCodecContext *avctx, uint8_t *frame,
|
||||
|
||||
if (buf_size < 2 * max_frame_size) {
|
||||
av_log(avctx, AV_LOG_ERROR, "buffer size is too small\n");
|
||||
return -1;
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
|
||||
verbatim:
|
||||
@ -555,7 +555,7 @@ verbatim:
|
||||
if (verbatim_flag || s->compression_level == 0) {
|
||||
/* still too large. must be an error. */
|
||||
av_log(avctx, AV_LOG_ERROR, "error encoding frame\n");
|
||||
return -1;
|
||||
return AVERROR_BUG;
|
||||
}
|
||||
verbatim_flag = 1;
|
||||
goto verbatim;
|
||||
|
Loading…
Reference in New Issue
Block a user