mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 20:19:55 +00:00
flacdec: don't call allocate_buffers() in init_thread_copy() when s->max_blocksize is 0
This is normal, and happens when no extradata was available at decoder initialization. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
c59ce1c98e
commit
a28f4fd1ea
@ -574,7 +574,9 @@ static int init_thread_copy(AVCodecContext *avctx)
|
||||
FLACContext *s = avctx->priv_data;
|
||||
s->decoded_buffer = NULL;
|
||||
s->decoded_buffer_size = 0;
|
||||
return allocate_buffers(s);
|
||||
if (s->max_blocksize)
|
||||
return allocate_buffers(s);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static av_cold int flac_decode_close(AVCodecContext *avctx)
|
||||
|
Loading…
Reference in New Issue
Block a user