[vlc-devel] Updated patch for ogg/theora seeking
salsaman
salsaman at gmail.com
Mon Jun 7 22:13:33 CEST 2010
On Mon, Jun 7, 2010 at 5:10 PM, salsaman <salsaman at gmail.com> wrote:
>
>
> On Mon, Jun 7, 2010 at 4:42 PM, Jean-Baptiste Kempf <jb at videolan.org>wrote:
>
>> On Mon, Jun 07, 2010 at 08:59:08AM -0300, salsaman wrote :
>> > diff --git a/modules/codec/theora.c b/modules/codec/theora.c
>>
>> > + /* need to skip some pages after a seek */
>> > + if ( p_block->i_flags & BLOCK_FLAG_PREROLL )
>> > + {
>> > + p_sys->b_skip_frame = true;
>> > + }
>> > + else p_sys->b_skip_frame = false;
>> Wouldn't something like this, be better?
>> p_sys->b_skip_frame = ( p_block->i_flags & BLOCK_FLAG_PREROLL );
>>
>>
>>
>
>
> Yes, you are right. I will change it.
>
>
Actually, come to think of it, no, strictly speaking:
e.g.
BLOCK_FLAG_PREROLL = 2
p_block->i_flags = 2
p_block->i_flags&BLOCK_FLAG_PREROLL = 2;
true = 1;
Ooops !!
Gabriel.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100607/c139e252/attachment.html>
More information about the vlc-devel
mailing list