mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-20 07:48:15 +02:00
avcodec/targa: Fix indentation
Forgotten after 1e85a698c01133a7f8d35502d5901e3b65fa3317. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
5714cf1b5b
commit
91ba3f5a8f
@ -274,10 +274,9 @@ static int decode_frame(AVCodecContext *avctx, AVFrame *p,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (flags & TGA_RIGHTTOLEFT) { // right-to-left, needs horizontal flip
|
if (flags & TGA_RIGHTTOLEFT) { // right-to-left, needs horizontal flip
|
||||||
int x;
|
for (int y = 0; y < h; y++) {
|
||||||
for (y = 0; y < h; y++) {
|
|
||||||
void *line = &p->data[0][y * p->linesize[0]];
|
void *line = &p->data[0][y * p->linesize[0]];
|
||||||
for (x = 0; x < w >> 1; x++) {
|
for (int x = 0; x < w >> 1; x++) {
|
||||||
switch (bpp) {
|
switch (bpp) {
|
||||||
case 32:
|
case 32:
|
||||||
FFSWAP(uint32_t, ((uint32_t *)line)[x], ((uint32_t *)line)[w - x - 1]);
|
FFSWAP(uint32_t, ((uint32_t *)line)[x], ((uint32_t *)line)[w - x - 1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user