Ignore:
Timestamp:
Aug 10, 2015 9:11:39 AM (9 years ago)
Author:
nanang
Message:

Misc (re #1843): Fixed compile warnings of unused variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/util.c

    r5138 r5157  
    2323#include <pj/errno.h> 
    2424#include <pj/log.h> 
     25 
     26#if defined(PJMEDIA_HAS_VIDEO) && (PJMEDIA_HAS_VIDEO != 0) 
    2527 
    2628#if defined(PJMEDIA_HAS_LIBYUV) && PJMEDIA_HAS_LIBYUV != 0 
     
    282284             
    283285            swap(src, dst); 
     286#else 
     287            PJ_UNUSED_ARG(p_len); 
     288            PJ_UNUSED_ARG(dst_size); 
    284289#endif 
    285290        } 
     
    289294        /* Center the frame and fill the area with black color */     
    290295        if (conv->fmt.id == PJMEDIA_FORMAT_I420) { 
    291             int i = 0; 
     296            unsigned i = 0; 
    292297            pj_uint8_t *pdst = dst; 
    293298            pj_uint8_t *psrc = src; 
    294             pj_size_t p_len_src, p_len_dst; 
     299            pj_size_t p_len_src = 0, p_len_dst = conv->wxh; 
    295300            int pad = conv->pad; 
    296301 
    297             p_len_dst = conv->wxh; 
    298302            pj_bzero(pdst, p_len_dst); 
    299303 
     
    358362    } 
    359363} 
     364 
     365#endif /* PJMEDIA_HAS_VIDEO */ 
Note: See TracChangeset for help on using the changeset viewer.