summaryrefslogtreecommitdiff
path: root/libavcodec/vp8.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-02-28 03:55:02 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2017-03-01 14:07:33 +0100
commit7b5ff7d57355dc608f0fd86e3ab32a2fda65e752 (patch)
treea137fd528071d3c8e1cbfefbfa55932bcdbf2633 /libavcodec/vp8.h
parent4bd3f1ce3e68a9348e97ec07a247048ea72ed808 (diff)
downloadffmpeg-7b5ff7d57355dc608f0fd86e3ab32a2fda65e752.tar.gz
avcodec/vp8: Check for bitsteam end in decode_mb_row_no_filter()
Fixes timeout with 686/clusterfuzz-testcase-5853946876788736 this shortcuts (i.e. speeds up) the error and return-to-user when decoding a truncated frame Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Previous version reviewed by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/vp8.h')
-rw-r--r--libavcodec/vp8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vp8.h b/libavcodec/vp8.h
index 374e1388e2..6218fe0567 100644
--- a/libavcodec/vp8.h
+++ b/libavcodec/vp8.h
@@ -275,7 +275,7 @@ typedef struct VP8Context {
*/
int mb_layout;
- void (*decode_mb_row_no_filter)(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr);
+ int (*decode_mb_row_no_filter)(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr);
void (*filter_mb_row)(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr);
int vp7;