Commit 133e2f69 authored by Sandrine Avakian's avatar Sandrine Avakian

Bug fix in enc_set_ptime.

parent 55b66fc9
......@@ -86,7 +86,8 @@ static int enc_add_fmtp(MSFilter *f, void *arg){
ms_message("MSBV16Enc: got maxptime=%i",s->max_ptime);
}
else if (fmtp_get_value(fmtp,"ptime",tmp,sizeof(tmp))){
return enc_set_ptime(f,atoi(tmp));
int val = atoi(tmp);
return enc_set_ptime(f,&val);
}
return 0;
}
......@@ -97,7 +98,7 @@ static int enc_add_attr(MSFilter *f, void *arg){
if (strstr(attr,"ptime:")!=NULL){
int ptime = atoi(attr+6);
return enc_set_ptime(f,ptime);
return enc_set_ptime(f,&ptime);
}
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