avcodec/cngdec: Check skip_samples
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 17 Aug 2017 21:40:45 +0000 (23:40 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 20 Aug 2017 00:59:57 +0000 (02:59 +0200)
commite7b9d136a1ba2d048b1a17df5778e426b825676d
tree4a3ee8e2460e1979cd43df4ddfe14d1171878d99
parent0c9d5b015c2022e8deebb93367f8ee8a8eb779e8
avcodec/cngdec: Check skip_samples

Without this its possible to make the new decode API decode billions of samples
out of a empty input and never return to the caller before all samples have been
created and discarded.

Fixes: Timeout
Fixes: 2992/clusterfuzz-testcase-6649611793989632

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/cngdec.c