Re: [libav-devel] [PATCH] make asfdec fallback to binary search internally

2011-05-17 Thread Reinhard Tartler
On Thu, May 12, 2011 at 10:25:54AM +0200, Vladimir Pantelic wrote: > Vladimir Pantelic wrote: > > >atm the asf logic is: > > > >if( index_exists ) { > > index = search_by_index() > > if( index< 0 ) { > > return -1; > > } > > // index success > >} else { > >

[libav-devel] [PATCH] make asfdec fallback to binary search internally

2011-05-12 Thread Vladimir Pantelic
Vladimir Pantelic wrote: atm the asf logic is: if( index_exists ) { index = search_by_index() if( index< 0 ) { return -1; } // index success } else { try binary search ... } maybe it should be: if( index_exists ) {