You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
alacdec: remove unneeded NULL or zero-size packet checks.
This is already done in avcodec_decode_audio3()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user