]> git.sesse.net Git - ffmpeg/commit
mmaldec: correct package buffering accounting
authorwm4 <nfxjfg@googlemail.com>
Thu, 14 Apr 2016 10:21:21 +0000 (12:21 +0200)
committerAnton Khirnov <anton@khirnov.net>
Sat, 30 Apr 2016 06:19:58 +0000 (08:19 +0200)
commit46aaad78c3cf03d43e7c9ca1d4a8b8a71fb0527d
tree2a1add9c255e33ff23e4c2c7b8497757dbd2a1bc
parent9a382f363950c0aab1500aa0937f73bf4dde9ee3
mmaldec: correct package buffering accounting

The assert in ffmmal_stop_decoder() could trigger sometimes. The
packets_buffered counter was indeed not correctly maintained, and
packets were not subtracted from it if they were still in the waiting
queue.

For some reason, this happened especially with VC-1.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavcodec/mmaldec.c