1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

check for error

Originally committed as revision 4183 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2005-05-05 20:05:41 +00:00
parent 369a02c2f4
commit 02af2269c0

View File

@ -2628,7 +2628,10 @@ static int decode_frame(AVCodecContext * avctx,
}
s->inbuf_ptr = s->inbuf;
s->frame_size = 0;
*data_size = out_size;
if(out_size>=0)
*data_size = out_size;
else
av_log(avctx, AV_LOG_DEBUG, "Error while decoding mpeg audio frame\n"); //FIXME return -1 / but also return the number of bytes consumed
break;
}
}