Ignore:
Timestamp:
Apr 4, 2012 5:45:46 AM (12 years ago)
Author:
ming
Message:

Misc (Re #1446): Add support for aviplay to play H264 and MPEG4 decoded AVI videos. This includes support for XVID and DIVX MPEG4.

File:
1 edited

Legend:

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

    r3905 r4018  
    8585                  {PJMEDIA_FORMAT_H263 , "h263" , 
    8686                   PJ_FALSE, 0}, 
    87                   {PJMEDIA_FORMAT_XVID , "xvid"}, 
     87                  {PJMEDIA_FORMAT_MPEG4, "mp4v"},  
     88                  {PJMEDIA_FORMAT_H264 , "h264"} 
    8889                 }; 
    8990 
     
    270271            } 
    271272             
     273            pjmedia_format_copy(&codec_param.enc_fmt, &param.vidparam.fmt); 
     274 
    272275            pjmedia_vid_dev_get_info(param.vidparam.rend_id, &rdr_info); 
    273276            for (i=0; i<codec_info->dec_fmt_id_cnt; ++i) { 
     
    276279                    { 
    277280                        param.vidparam.fmt.id = codec_info->dec_fmt_id[i]; 
     281                        i = codec_info->dec_fmt_id_cnt; 
     282                        break; 
    278283                    } 
    279284                } 
     
    293298             
    294299            pjmedia_format_copy(&codec_param.dec_fmt, &param.vidparam.fmt); 
     300            codec_param.dir = PJMEDIA_DIR_DECODING; 
    295301            codec_param.packing = PJMEDIA_VID_PACKING_WHOLE; 
    296302            status = pjmedia_vid_codec_open(codec, &codec_param); 
Note: See TracChangeset for help on using the changeset viewer.