ffmdec: limit the backward seek to the last resync position
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Mon, 9 Mar 2015 13:59:44 +0000 (14:59 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Mar 2015 16:06:10 +0000 (17:06 +0100)
commit8d0112d8fc734f6d81f9160448b80a153f4346c7
tree07f60cb20f18e08fe8ac0cc51c73c1e32c241142
parentfdb05ff57b8fdbd67feeaf2332e3000f02d471cc
ffmdec: limit the backward seek to the last resync position

If resyncing leads to the same position as previously, it will again
lead to a resync attempt, resulting in an infinite loop.

Thus don't seek back beyond the last syncpoint.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 6b8263b03ab3d16d70525ae1893cb106be7852f1)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/ffmdec.c