Remove useless check, patch by Benoit Fouet, benoit.fouet purplelabs com.
authorBenoit Fouet <benoit.fouet@purplelabs.com>
Mon, 5 Feb 2007 09:11:10 +0000 (09:11 +0000)
committerDiego Biurrun <diego@biurrun.de>
Mon, 5 Feb 2007 09:11:10 +0000 (09:11 +0000)
Originally committed as revision 7821 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/amr.c

index b19346e..17be295 100644 (file)
@@ -436,11 +436,6 @@ static int amr_nb_decode_frame(AVCodecContext * avctx,
 
     /* av_log(NULL,AV_LOG_DEBUG,"amr_decode_frame buf=%p buf_size=%d frameCount=%d!!\n",buf,buf_size,s->frameCount); */
 
 
     /* av_log(NULL,AV_LOG_DEBUG,"amr_decode_frame buf=%p buf_size=%d frameCount=%d!!\n",buf,buf_size,s->frameCount); */
 
-    if(buf_size==0) {
-        /* nothing to do */
-        return 0;
-    }
-
     dec_mode = (buf[0] >> 3) & 0x000F;
     packet_size = block_size[dec_mode]+1;
 
     dec_mode = (buf[0] >> 3) & 0x000F;
     packet_size = block_size[dec_mode]+1;