avcodec/pnmenc: reindent

This commit is contained in:
Paul B Mahol 2022-06-29 09:51:58 +02:00
parent ed4bad9977
commit 42d75f2faa
1 changed files with 7 additions and 7 deletions

View File

@ -139,13 +139,13 @@ static int pnm_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
g += p->linesize[0] / 4;
}
} else {
ptr = p->data[0];
linesize = p->linesize[0];
for (i = 0; i < h; i++) {
memcpy(bytestream, ptr, n);
bytestream += n;
ptr += linesize;
}
ptr = p->data[0];
linesize = p->linesize[0];
for (i = 0; i < h; i++) {
memcpy(bytestream, ptr, n);
bytestream += n;
ptr += linesize;
}
}
if (avctx->pix_fmt == AV_PIX_FMT_YUV420P || avctx->pix_fmt == AV_PIX_FMT_YUV420P16BE) {