aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-11 23:24:23 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-11 23:55:59 +0200
commit6899e6e56065d9365963e02690dc9e2ce7866050 (patch)
tree18af85e3e4f847bf2de0c7370a0ec82ea47d93ea /libavcodec
parentd05bdba2428dd0c1c5cd3426d69c712b127f996c (diff)
downloadffmpeg-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')
-rw-r--r--libavcodec/diracdec.c2
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;