avcodec/qtrle: Do not output duplicated frames on insufficient input
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 27 May 2018 19:59:58 +0000 (21:59 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 May 2018 00:42:10 +0000 (02:42 +0200)
commita9dacdeea6168787a142209bd19fdd74aefc9dd6
tree849ed1e0c585f052733d9254db2c1be5277260da
parent53d6d4f266b50330a62cbfefdf16ca7b5f496b11
avcodec/qtrle: Do not output duplicated frames on insufficient input

This improves performance and makes qtrle behave more similar to other decoders.
Libavcodec does generally not output known duplicated frames, instead the calling Application
can insert them as it needs.

Fixes: Timeout
Fixes: 6383/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QTRLE_fuzzer-6199846902956032

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/qtrle.c
tests/ref/fate/qtrle-8bit