Fix --width/--height options handling bug

parent a9d556d9
......@@ -205,6 +205,11 @@ int main(int argc, char * argv[])
printf("%s",usage);
return -1;
}
/* default size */
vs.width=MS_VIDEO_SIZE_CIF_W;
vs.height=MS_VIDEO_SIZE_CIF_H;
for (i=1;i<argc;i++){
if (strcmp(argv[i],"--local")==0){
i++;
......@@ -327,11 +332,6 @@ int main(int argc, char * argv[])
rtp_profile_set_payload(&av_profile,103,&payload_type_vp8);
#endif
vs.width=MS_VIDEO_SIZE_CIF_W;
vs.height=MS_VIDEO_SIZE_CIF_H;
run_media_streams(localport,ip,remoteport,payload,fmtp,jitter,bitrate,vs,ec,agc,eq);
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment