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>
Sat, 21 Mar 2015 00:52:52 +0000 (01:52 +0100)
commit93a0682b1d73f114720cd5c5bd69740546f78cdb
tree05d01f47469fb00762177a432b2cd9c0392eed7c
parent0e16c3843a3b2cd06b90898c04d85ed3d82266bb
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