[FFmpeg-devel] [PATCH]Support SOLID_GRAY lagarith frames
Paul B Mahol
onemda at gmail.com
Tue Jan 22 12:17:27 CET 2013
On 1/22/13, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Paul B Mahol <onemda <at> gmail.com> writes:
>
>> > + } else {
>> > + avctx->pix_fmt = AV_PIX_FMT_0RGB32;
>> > + planes = 4;
>>
>> Is this last line actaully needed?
>
> I think so, but please tell me if not.
>
>> > for (j = 0; j < avctx->height; j++) {
>> > + if (frametype == FRAME_SOLID_RGBA) {
>>
>> if/else in loop when it is not needed/pointless.
>
> Please elaborate.
add another loop for gray case.
>
>>
>> > for (i = 0; i < avctx->width; i++)
>> > AV_WN32(dst + i * 4, offset_gu);
>> > + } else {
>> > + memset(dst, buf[1], avctx->width * planes);
>>
>> Are you sure that out of array write is not possible?
>
> I thought so, but if I miss something, please explain.
>
> Thank you, Carl Eugen
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
More information about the ffmpeg-devel
mailing list