targa: cosmetics - add some whitespace
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com>
This commit is contained in:
		
							parent
							
								
									50787fe350
								
							
						
					
					
						commit
						b56f94cc36
					
				@ -180,6 +180,7 @@ static int decode_frame(AVCodecContext *avctx,
 | 
				
			|||||||
        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
 | 
					        av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (flags & TGA_TOPTOBOTTOM) {
 | 
					    if (flags & TGA_TOPTOBOTTOM) {
 | 
				
			||||||
        dst = p->data[0];
 | 
					        dst = p->data[0];
 | 
				
			||||||
        stride = p->linesize[0];
 | 
					        stride = p->linesize[0];
 | 
				
			||||||
@ -244,6 +245,7 @@ static int decode_frame(AVCodecContext *avctx,
 | 
				
			|||||||
            p->palette_has_changed = 1;
 | 
					            p->palette_has_changed = 1;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if ((compr & (~TGA_RLE)) == TGA_NODATA) {
 | 
					    if ((compr & (~TGA_RLE)) == TGA_NODATA) {
 | 
				
			||||||
        memset(p->data[0], 0, p->linesize[0] * h);
 | 
					        memset(p->data[0], 0, p->linesize[0] * h);
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
@ -268,6 +270,7 @@ static int decode_frame(AVCodecContext *avctx,
 | 
				
			|||||||
            } while (line);
 | 
					            } while (line);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (flags & TGA_RIGHTTOLEFT) { // right-to-left, needs horizontal flip
 | 
					    if (flags & TGA_RIGHTTOLEFT) { // right-to-left, needs horizontal flip
 | 
				
			||||||
        int x;
 | 
					        int x;
 | 
				
			||||||
        for (y = 0; y < h; y++) {
 | 
					        for (y = 0; y < h; y++) {
 | 
				
			||||||
@ -298,7 +301,8 @@ static int decode_frame(AVCodecContext *avctx,
 | 
				
			|||||||
    return avpkt->size;
 | 
					    return avpkt->size;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static av_cold int targa_init(AVCodecContext *avctx){
 | 
					static av_cold int targa_init(AVCodecContext *avctx)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
    TargaContext *s = avctx->priv_data;
 | 
					    TargaContext *s = avctx->priv_data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    avcodec_get_frame_defaults(&s->picture);
 | 
					    avcodec_get_frame_defaults(&s->picture);
 | 
				
			||||||
@ -307,7 +311,8 @@ static av_cold int targa_init(AVCodecContext *avctx){
 | 
				
			|||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static av_cold int targa_end(AVCodecContext *avctx){
 | 
					static av_cold int targa_end(AVCodecContext *avctx)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
    TargaContext *s = avctx->priv_data;
 | 
					    TargaContext *s = avctx->priv_data;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (s->picture.data[0])
 | 
					    if (s->picture.data[0])
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user