[FFmpeg-devel] MPEG-TS over UDP broken by r15739

Jindrich Makovicka makovick
Mon Nov 10 22:42:54 CET 2008


On Mon, Nov 10, 2008 at 19:21, Baptiste Coudurier
<baptiste.coudurier at gmail.com> wrote:
>> Index: aviobuf.c
>> ===================================================================
>> --- aviobuf.c (revision 15773)
>> +++ aviobuf.c (working copy)
>> @@ -290,7 +290,7 @@
>>
>>  static void fill_buffer(ByteIOContext *s)
>>  {
>> -    uint8_t *dst= s->buf_end - s->buffer < s->buffer_size ? s->buf_ptr : s->buffer;
>> +    uint8_t *dst= (s->max_packet_size == 0 && s->buf_end - s->buffer < s->buffer_size) ? s->buf_ptr : s->buffer;
>>      int len= s->buffer_size - (dst - s->buffer);
>>
>>      assert(s->buf_ptr == s->buf_end);
>>
>
> Useless parentheses ? and !s->max_packet_size ?

Committed with ! instead of ==0 and without parentheses.

-- 
Jindrich Makovicka




More information about the ffmpeg-devel mailing list