flacdec: Fix used AVCodecContext
Fixes out of array writes with multiple threads Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
fa125c5e82
commit
c112e36d41
1 changed files with 1 additions and 0 deletions
|
|
@ -498,6 +498,7 @@ static int flac_decode_frame(AVCodecContext *avctx, void *data,
|
|||
int ret;
|
||||
|
||||
*got_frame_ptr = 0;
|
||||
s->avctx = avctx;
|
||||
|
||||
if (s->max_framesize == 0) {
|
||||
s->max_framesize =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue