avs: fix infinite loop on end-of-stream.
authorRonald S. Bultje <rsbultje@gmail.com>
Thu, 16 Feb 2012 00:21:34 +0000 (16:21 -0800)
committerRonald S. Bultje <rsbultje@gmail.com>
Thu, 8 Mar 2012 00:33:35 +0000 (16:33 -0800)
commit83f15a1228895434a982c840b09edccd1c64e800
tree9ab93ba4105d99cc3496ef9080f4e2dc0d9b7154
parentfd0be63049ed46660993d0550a4f0847a0b942ea
avs: fix infinite loop on end-of-stream.

The codec would keep returning the last decoded frame if the stream
contains B-frames, since it wouldn't clear that frame from the list of
frames to be returned to the user.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
libavcodec/cavsdec.c