]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Add av_unused to conditionally used variable, fixes the warning:
authordiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 2 Feb 2009 00:35:25 +0000 (00:35 +0000)
committerdiego <diego@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 2 Feb 2009 00:35:25 +0000 (00:35 +0000)
h264.c:6464: warning: unused variable 'dir'

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16925 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/h264.c

index 5785e1fc42bf8c0ccb89361a1071f96d326e5d35..1d3dbc0ed5c6a127c1af47d0991eb6fee5e85fe7 100644 (file)
@@ -6461,7 +6461,7 @@ static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8
     const int mb_type = s->current_picture.mb_type[mb_xy];
     const int mvy_limit = IS_INTERLACED(mb_type) ? 2 : 4;
     int first_vertical_edge_done = 0;
-    int dir;
+    av_unused int dir;
 
     //for sufficiently low qp, filtering wouldn't do anything
     //this is a conservative estimate: could also check beta_offset and more accurate chroma_qp