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 12:04:31 +0000 (13:04 +0100)
commitd9dbd2362d7475a4dbc3606791e1fd3c7279a781
treed6089f5950877cd7965a4a176edf5990cce221a5
parentec684aa58ad95cc51bfbe9279aaa8e278fa2eefb
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