comparison h264.c @ 8727:0d2190f5ae78 libavcodec

Add av_unused to conditionally used variable, fixes the warning: h264.c:6464: warning: unused variable 'dir'
author diego
date Mon, 02 Feb 2009 00:35:25 +0000
parents e9d9d946f213
children 5d7ebbb7e91b
comparison
equal deleted inserted replaced
8726:4d371825ba2b 8727:0d2190f5ae78
6459 MpegEncContext * const s = &h->s; 6459 MpegEncContext * const s = &h->s;
6460 const int mb_xy= mb_x + mb_y*s->mb_stride; 6460 const int mb_xy= mb_x + mb_y*s->mb_stride;
6461 const int mb_type = s->current_picture.mb_type[mb_xy]; 6461 const int mb_type = s->current_picture.mb_type[mb_xy];
6462 const int mvy_limit = IS_INTERLACED(mb_type) ? 2 : 4; 6462 const int mvy_limit = IS_INTERLACED(mb_type) ? 2 : 4;
6463 int first_vertical_edge_done = 0; 6463 int first_vertical_edge_done = 0;
6464 int dir; 6464 av_unused int dir;
6465 6465
6466 //for sufficiently low qp, filtering wouldn't do anything 6466 //for sufficiently low qp, filtering wouldn't do anything
6467 //this is a conservative estimate: could also check beta_offset and more accurate chroma_qp 6467 //this is a conservative estimate: could also check beta_offset and more accurate chroma_qp
6468 if(!FRAME_MBAFF){ 6468 if(!FRAME_MBAFF){
6469 int qp_thresh = 15 - h->slice_alpha_c0_offset - FFMAX3(0, h->pps.chroma_qp_index_offset[0], h->pps.chroma_qp_index_offset[1]); 6469 int qp_thresh = 15 - h->slice_alpha_c0_offset - FFMAX3(0, h->pps.chroma_qp_index_offset[0], h->pps.chroma_qp_index_offset[1]);