diff options
author | Bobby Bingham | 2012-10-07 23:59:59 -0500 |
---|---|---|
committer | Bobby Bingham | 2012-10-08 22:47:57 -0500 |
commit | 3d9cdfdce76a121945c3626a66739f47a055e103 (patch) | |
tree | 1d2630bb37d84bc3e58a921e754e6f132bbf697c /libavcodec/targa.c | |
parent | d07940b76d03d8dd70410b44b8ae9b86dcf08e4e (diff) |
targa: use named constants for flag values
Signed-off-by: Bobby Bingham <uhmmmm@gmail.com>
Diffstat (limited to 'libavcodec/targa.c')
-rw-r--r-- | libavcodec/targa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/targa.c b/libavcodec/targa.c index 8cef685587..b1689574bf 100644 --- a/libavcodec/targa.c +++ b/libavcodec/targa.c @@ -166,7 +166,7 @@ static int decode_frame(AVCodecContext *avctx, av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n"); return -1; } - if(flags & 0x20){ + if(flags & TGA_TOPTOBOTTOM) { dst = p->data[0]; stride = p->linesize[0]; }else{ //image is upside-down @@ -247,7 +247,7 @@ static int decode_frame(AVCodecContext *avctx, } } } - if(flags & 0x10){ // right-to-left, needs horizontal flip + if(flags & TGA_RIGHTTOLEFT) { // right-to-left, needs horizontal flip int x; for(y = 0; y < h; y++){ void *line = &p->data[0][y * p->linesize[0]]; |