Commit 6565ea67 authored by michael's avatar michael

All negative values are errors not just -1.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16539 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ec9e0d15
......@@ -174,10 +174,12 @@ static int MP3lame_encode_frame(AVCodecContext *avctx,
);
}
if(lame_result < 0){
if(lame_result==-1) {
/* 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);
return 0;
}
return -1;
}
s->buffer_index += lame_result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment