[FFmpeg-devel] [PATCH]Flip zerocodec
Derek Buitenhuis
derek.buitenhuis at gmail.com
Sat Dec 8 20:05:18 CET 2012
On 30/11/2012 8:47 PM, Carl Eugen Hoyos wrote:
> }
> + prev += (avctx->height - 1) * prev_pic->linesize[0];
> pic->key_frame = 0;
Please put newlines around the new line.
> pic->pict_type = AV_PICTURE_TYPE_P;
> }
> @@ -66,7 +67,7 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, void *data,
> zstream->next_in = avpkt->data;
> zstream->avail_in = avpkt->size;
>
> - dst = pic->data[0];
> + dst = pic->data[0] + (avctx->height - 1) * pic->linesize[0];
>
> /**
> * ZeroCodec has very simple interframe compression. If a value
> @@ -89,8 +90,8 @@ static int zerocodec_decode_frame(AVCodecContext *avctx, void *data,
> for (j = 0; j < avctx->width << 1; j++)
> dst[j] += prev[j] & -!dst[j];
>
> - prev += prev_pic->linesize[0];
> - dst += pic->linesize[0];
> + prev -= prev_pic->linesize[0];
> + dst -= pic->linesize[0];
You added some random whitespace here. Please keep it as it was originally.
OK'd after these changes, as per my other mail.
- Derek
More information about the ffmpeg-devel
mailing list