OSDN Git Service

qsvdec: avoid an infinite loop with no consumed data and no output
authorAnton Khirnov <anton@khirnov.net>
Thu, 9 Jul 2015 18:08:13 +0000 (20:08 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 25 Jul 2015 15:23:29 +0000 (17:23 +0200)
commitaa9d15d89bb4ee8a31607d3db1b8c5334eb88d2d
tree02f80e592be0df9e41909e186819aa0b94093781
parentc9edbe4af901e9bc9f05a62319637f9760df9a4a
qsvdec: avoid an infinite loop with no consumed data and no output

This is triggerable with the HEVC decoder. It is unclear yet whether the
bug is in the calling code or the MSDK, but it seems better to check for
this in any case.
libavcodec/qsvdec.c