Re: [FFmpeg-devel] [PATCH 1/3] nutdec: fix infinite resync loops

2015-05-20 Thread Andreas Cadhalpun
On 20.05.2015 16:53, Michael Niedermayer wrote: > On Wed, May 20, 2015 at 04:34:49PM +0200, Andreas Cadhalpun wrote: >> nut.h|1 + >> nutdec.c |5 - >> 2 files changed, 5 insertions(+), 1 deletion(-) >> b32d36842ae472ac23d4445d35cee09c8a9adc46 >> 0001-nutdec-fix-infinite-resync-l

Re: [FFmpeg-devel] [PATCH 1/3] nutdec: fix infinite resync loops

2015-05-20 Thread Michael Niedermayer
On Wed, May 20, 2015 at 04:34:49PM +0200, Andreas Cadhalpun wrote: > On 20.05.2015 02:00, Michael Niedermayer wrote: > > On Wed, May 20, 2015 at 12:49:49AM +0200, Andreas Cadhalpun wrote: > >> nut->last_syncpoint_pos doesn't necessarily change between resync > >> attempts, so find_any_startcode can

Re: [FFmpeg-devel] [PATCH 1/3] nutdec: fix infinite resync loops

2015-05-20 Thread Michael Niedermayer
On Wed, May 20, 2015 at 04:34:49PM +0200, Andreas Cadhalpun wrote: > On 20.05.2015 02:00, Michael Niedermayer wrote: > > On Wed, May 20, 2015 at 12:49:49AM +0200, Andreas Cadhalpun wrote: > >> nut->last_syncpoint_pos doesn't necessarily change between resync > >> attempts, so find_any_startcode can

Re: [FFmpeg-devel] [PATCH 1/3] nutdec: fix infinite resync loops

2015-05-20 Thread Andreas Cadhalpun
On 20.05.2015 02:00, Michael Niedermayer wrote: > On Wed, May 20, 2015 at 12:49:49AM +0200, Andreas Cadhalpun wrote: >> nut->last_syncpoint_pos doesn't necessarily change between resync >> attempts, so find_any_startcode can return the same startcode again. >> >> Thus remember where the last resync

Re: [FFmpeg-devel] [PATCH 1/3] nutdec: fix infinite resync loops

2015-05-19 Thread Michael Niedermayer
On Wed, May 20, 2015 at 12:49:49AM +0200, Andreas Cadhalpun wrote: > nut->last_syncpoint_pos doesn't necessarily change between resync > attempts, so find_any_startcode can return the same startcode again. > > Thus remember where the last resync happened and don't try to resync > before that. > >

[FFmpeg-devel] [PATCH 1/3] nutdec: fix infinite resync loops

2015-05-19 Thread Andreas Cadhalpun
nut->last_syncpoint_pos doesn't necessarily change between resync attempts, so find_any_startcode can return the same startcode again. Thus remember where the last resync happened and don't try to resync before that. This can't be done locally in nut_read_packet, because this wouldn't prevent inf