OSDN Git Service

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>
Mon, 9 Mar 2015 14:19:34 +0000 (15:19 +0100)
commit6b8263b03ab3d16d70525ae1893cb106be7852f1
treedee9ff7179da35ba2881625f8487a7102b14fd83
parentb4ec6afd3d374f7e38da597924adc28680fe89af
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>
libavformat/ffmdec.c