diff --git a/libavcodec/amr.c b/libavcodec/amr.c index b19346e3d85e96c5a91b8d4cca70ae06d48c4da8..17be295da05adc5d7f71115a03b66dcbe531e72d 100644 --- a/libavcodec/amr.c +++ b/libavcodec/amr.c @@ -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); */ - if(buf_size==0) { - /* nothing to do */ - return 0; - } - dec_mode = (buf[0] >> 3) & 0x000F; packet_size = block_size[dec_mode]+1;