[vlc-devel] [PATCH 1/2] avi: Fix missing frames when playing unseekable streams (refs #2151)

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Aug 21 22:42:47 CEST 2012


On Tue, Aug 21, 2012 at 8:59 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:
> Le mardi 21 août 2012 21:48:36 Samuel Pitoiset, vous avez écrit :
>> ---
>>  modules/demux/avi/avi.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
>> index 5490296..f2579b8 100644
>> --- a/modules/demux/avi/avi.c
>> +++ b/modules/demux/avi/avi.c
>> @@ -1249,7 +1249,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
>>          {
>>              /* check for time */
>>              if( __ABS( AVI_GetPTS( p_stream ) -
>> -                        AVI_GetPTS( p_stream_master ) )< 600*1000 )
>> +                        AVI_GetPTS( p_stream_master ) ) > -1*1000 )
>
> An absolute value is always bigger than a negative value.
> This patch does not make any sense to me.

I agree, but this patch seems to fix the issue, not in the right way however.
Let me try to improve it.

What about the seconde one?


-- 
Best regards,
Samuel Pitoiset.



More information about the vlc-devel mailing list