[FFmpeg-cvslog] alacdec: remove unneeded NULL or zero-size packet checks.

Justin Ruggles git at videolan.org
Thu Oct 27 01:46:43 CEST 2011


ffmpeg | branch: master | Justin Ruggles <justin.ruggles at gmail.com> | Mon Oct 10 13:07:19 2011 -0400| [30f3e7b524cc31155db7a1b0057f651312f6341e] | committer: Justin Ruggles

alacdec: remove unneeded NULL or zero-size packet checks.

This is already done in avcodec_decode_audio3()

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=30f3e7b524cc31155db7a1b0057f651312f6341e
---

 libavcodec/alac.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/libavcodec/alac.c b/libavcodec/alac.c
index 4b44219..1056e6c 100644
--- a/libavcodec/alac.c
+++ b/libavcodec/alac.c
@@ -368,10 +368,6 @@ static int alac_decode_frame(AVCodecContext *avctx,
     uint8_t interlacing_leftweight;
     int i, ch;
 
-    /* short-circuit null buffers */
-    if (!inbuffer || !input_buffer_size)
-        return -1;
-
     init_get_bits(&alac->gb, inbuffer, input_buffer_size * 8);
 
     channels = get_bits(&alac->gb, 3) + 1;



More information about the ffmpeg-cvslog mailing list