On Thu, Mar 13, 2014 at 4:35 PM, Luca Barbato <[email protected]> wrote:
> On 13/03/14 16:27, Vittorio Giovara wrote:
>> +            if (s->bytes_per_channel == 1)
>> +                ret = expand_rle_row8(s, dest_row + z, linesize, s->depth);
>> +            else
>> +                ret = expand_rle_row16(s, (uint16_t *)dest_row + z, 
>> linesize, s->depth);
>
> use a switch statement, you never know ^^;
>

well s->bytes_per_channel can only be 1 or 2, the decoder exits
immediately if not.
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to