[FFmpeg-cvslog] r16539 - trunk/libavcodec/libmp3lame.c
michael
subversion
Sun Jan 11 17:16:33 CET 2009
Author: michael
Date: Sun Jan 11 17:16:33 2009
New Revision: 16539
Log:
All negative values are errors not just -1.
Modified:
trunk/libavcodec/libmp3lame.c
Modified: trunk/libavcodec/libmp3lame.c
==============================================================================
--- trunk/libavcodec/libmp3lame.c Sun Jan 11 17:15:34 2009 (r16538)
+++ trunk/libavcodec/libmp3lame.c Sun Jan 11 17:16:33 2009 (r16539)
@@ -174,10 +174,12 @@ static int MP3lame_encode_frame(AVCodecC
);
}
+ 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;
More information about the ffmpeg-cvslog
mailing list