summaryrefslogtreecommitdiffstats
path: root/libavformat/ffmenc.c
diff options
context:
space:
mode:
authorwm4 <[email protected]>2015-01-10 18:00:08 +0100
committerMichael Niedermayer <[email protected]>2015-01-10 20:12:36 +0100
commit09b4ad15681be197fff8c57ce7c988a4718d6e03 (patch)
tree404216e9331e283f415ba79324fd5447fd7fe565 /libavformat/ffmenc.c
parent0898a6d4e4b669704fce663f610aa43dd7483fe9 (diff)
vp9: avoid infinite loop with broken files
With a certain fuzzed file, the parser will always return 0 consumed bytes, which makes calling code call the parser infinitely. Return the full packet size on error instead. (Here it would be nice if parsers could return errors at all.) Additionally, _if_ there's some data left, return that too, which might help with somewhat broken but still somehow playable files. Fixes ticket #4242. Reviewed-by: "Ronald S. Bultje" <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavformat/ffmenc.c')
0 files changed, 0 insertions, 0 deletions