Browse Source

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>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
c112e36d41
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/flacdec.c

+ 1
- 0
libavcodec/flacdec.c View File

@@ -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…
Cancel
Save