mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/pngdec: fix indentation in handle_row()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6e9b060e4f
commit
1d69ab9d1c
|
@ -307,13 +307,13 @@ static void png_handle_row(PNGDecContext *s)
|
||||||
|
|
||||||
if (!s->interlace_type) {
|
if (!s->interlace_type) {
|
||||||
ptr = s->image_buf + s->image_linesize * (s->y + s->y_offset) + s->x_offset * s->bpp;
|
ptr = s->image_buf + s->image_linesize * (s->y + s->y_offset) + s->x_offset * s->bpp;
|
||||||
if (s->y == 0)
|
if (s->y == 0)
|
||||||
last_row = s->last_row;
|
last_row = s->last_row;
|
||||||
else
|
else
|
||||||
last_row = ptr - s->image_linesize;
|
last_row = ptr - s->image_linesize;
|
||||||
|
|
||||||
png_filter_row(&s->dsp, ptr, s->crow_buf[0], s->crow_buf + 1,
|
png_filter_row(&s->dsp, ptr, s->crow_buf[0], s->crow_buf + 1,
|
||||||
last_row, s->row_size, s->bpp);
|
last_row, s->row_size, s->bpp);
|
||||||
/* loco lags by 1 row so that it doesn't interfere with top prediction */
|
/* loco lags by 1 row so that it doesn't interfere with top prediction */
|
||||||
if (s->filter_type == PNG_FILTER_TYPE_LOCO && s->y > 0) {
|
if (s->filter_type == PNG_FILTER_TYPE_LOCO && s->y > 0) {
|
||||||
if (s->bit_depth == 16) {
|
if (s->bit_depth == 16) {
|
||||||
|
|
Loading…
Reference in New Issue