targa: cosmetics - add some whitespace

Signed-off-by: Bobby Bingham <uhmmmm@gmail.com>
This commit is contained in:
Bobby Bingham 2012-10-08 00:23:45 -05:00
parent 50787fe350
commit b56f94cc36

View File

@ -180,6 +180,7 @@ static int decode_frame(AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return -1;
}
if (flags & TGA_TOPTOBOTTOM) {
dst = p->data[0];
stride = p->linesize[0];
@ -244,6 +245,7 @@ static int decode_frame(AVCodecContext *avctx,
p->palette_has_changed = 1;
}
}
if ((compr & (~TGA_RLE)) == TGA_NODATA) {
memset(p->data[0], 0, p->linesize[0] * h);
} else {
@ -268,6 +270,7 @@ static int decode_frame(AVCodecContext *avctx,
} while (line);
}
}
if (flags & TGA_RIGHTTOLEFT) { // right-to-left, needs horizontal flip
int x;
for (y = 0; y < h; y++) {
@ -298,7 +301,8 @@ static int decode_frame(AVCodecContext *avctx,
return avpkt->size;
}
static av_cold int targa_init(AVCodecContext *avctx){
static av_cold int targa_init(AVCodecContext *avctx)
{
TargaContext *s = avctx->priv_data;
avcodec_get_frame_defaults(&s->picture);
@ -307,7 +311,8 @@ static av_cold int targa_init(AVCodecContext *avctx){
return 0;
}
static av_cold int targa_end(AVCodecContext *avctx){
static av_cold int targa_end(AVCodecContext *avctx)
{
TargaContext *s = avctx->priv_data;
if (s->picture.data[0])