mirror of https://git.ffmpeg.org/ffmpeg.git
alacdec: remove unneeded NULL or zero-size packet checks.
This is already done in avcodec_decode_audio3()
This commit is contained in:
parent
68f7e9cd8e
commit
30f3e7b524
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue