mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
All negative values are errors not just -1.
Originally committed as revision 16539 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
528271ff67
commit
2083648383
@ -174,10 +174,12 @@ static int MP3lame_encode_frame(AVCodecContext *avctx,
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(lame_result < 0){
|
||||||
if(lame_result==-1) {
|
if(lame_result==-1) {
|
||||||
/* output buffer too small */
|
/* output buffer too small */
|
||||||
av_log(avctx, AV_LOG_ERROR, "lame: output buffer too small (buffer index: %d, free bytes: %d)\n", s->buffer_index, BUFFER_SIZE - s->buffer_index);
|
av_log(avctx, AV_LOG_ERROR, "lame: output buffer too small (buffer index: %d, free bytes: %d)\n", s->buffer_index, BUFFER_SIZE - s->buffer_index);
|
||||||
return 0;
|
}
|
||||||
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
s->buffer_index += lame_result;
|
s->buffer_index += lame_result;
|
||||||
|
Loading…
Reference in New Issue
Block a user