[vlc-devel] [PATCH] swscale: fix warning

Tristan Matthews le.businessman at gmail.com
Wed Jun 11 17:28:22 CEST 2014


On Wed, Jun 11, 2014 at 9:38 AM, Rémi Denis-Courmont <remi at remlab.net> wrote:
>
> Le 2014-06-11 21:03, Tristan Matthews a écrit :
>
>>> Are you sure? That does not seem like a valid cast to me.
>>
>>
>> Pretty sure, the warning it silences is:
>
>
> When does silencing a compiler warning make an explicit cast valid since?

That's true, I guess it's not clear to me that the cast is invalid.

Otherwise, a temporary is uglier but would work:

    const uint8_t *tmp[4] = {src[0], src[1], src[2], src[3]};
    sws_scale( ctx, tmp, src_stride, 0, i_height,
               dst, dst_stride );



More information about the vlc-devel mailing list