mimic: don't use self as reference, and report completion at end of decode().
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 16 Mar 2012 21:04:00 +0000 (14:04 -0700)
committerReinhard Tartler <siretart@tauware.de>
Sun, 29 Apr 2012 20:07:01 +0000 (22:07 +0200)
commitbf3998d71efa7a9a6acc6d7d81dd674249e074c1
tree30f65af71f0a4f6d58a1967e92d46b5379bc31d3
parent87208b8fc4bdd5c2ee635682b4a06fc251dae74d
mimic: don't use self as reference, and report completion at end of decode().

Fixes hangs on corrupt samples that reference self-frames.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit 80387f0e2568746dce4a68e2217297029a053dae)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavcodec/mimic.c