Changeset 3936 for pjproject


Ignore:
Timestamp:
Jan 6, 2012 11:28:19 AM (12 years ago)
Author:
nanang
Message:

Re #1441 (vid_streamutil): only apply the decoding format size (DEF_RENDERER_WIDTH/HEIGHT macro setting) if it is larger than the default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/vid_streamutil.c

    r3935 r3936  
    612612#if DEF_RENDERER_WIDTH && DEF_RENDERER_HEIGHT 
    613613    /* Set incoming video size */ 
    614     codec_param.dec_fmt.det.vid.size.w = DEF_RENDERER_WIDTH; 
    615     codec_param.dec_fmt.det.vid.size.h = DEF_RENDERER_HEIGHT; 
     614    if (DEF_RENDERER_WIDTH > codec_param.dec_fmt.det.vid.size.w) 
     615        codec_param.dec_fmt.det.vid.size.w = DEF_RENDERER_WIDTH; 
     616    if (DEF_RENDERER_HEIGHT > codec_param.dec_fmt.det.vid.size.h) 
     617        codec_param.dec_fmt.det.vid.size.h = DEF_RENDERER_HEIGHT; 
    616618#endif 
    617619 
Note: See TracChangeset for help on using the changeset viewer.