diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-11 23:24:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-11 23:55:59 +0200 |
commit | 6899e6e56065d9365963e02690dc9e2ce7866050 (patch) | |
tree | 18af85e3e4f847bf2de0c7370a0ec82ea47d93ea /libavcodec/diracdec.c | |
parent | d05bdba2428dd0c1c5cd3426d69c712b127f996c (diff) | |
download | ffmpeg-6899e6e56065d9365963e02690dc9e2ce7866050.tar.gz |
avcodec/diracdec: Fix Assertion frame->buf[0] failed at libavcodec/decode.c:610
Fixes: 1487/clusterfuzz-testcase-minimized-6288036495097856
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/diracdec.c')
-rw-r--r-- | libavcodec/diracdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec.c index 202ae94922..3573298ca1 100644 --- a/libavcodec/diracdec.c +++ b/libavcodec/diracdec.c @@ -2047,9 +2047,9 @@ static int get_delayed_pic(DiracContext *s, AVFrame *picture, int *got_frame) if (out) { out->reference ^= DELAYED_PIC_REF; - *got_frame = 1; if((ret = av_frame_ref(picture, out->avframe)) < 0) return ret; + *got_frame = 1; } return 0; |