Commit 3209fd2d authored by Simon Morlat's avatar Simon Morlat
Browse files

fix compilation errors

parent 311ff6a9
...@@ -153,7 +153,7 @@ static bool_t check_sps_change(DecData *d, mblk_t *sps){ ...@@ -153,7 +153,7 @@ static bool_t check_sps_change(DecData *d, mblk_t *sps){
if (d->sps){ if (d->sps){
ret=(msgdsize(sps)!=msgdsize(d->sps)) || (memcmp(d->sps->b_rptr,sps->b_rptr,msgdsize(sps))!=0); ret=(msgdsize(sps)!=msgdsize(d->sps)) || (memcmp(d->sps->b_rptr,sps->b_rptr,msgdsize(sps))!=0);
if (ret) { if (ret) {
ms_message("SPS changed ! %i,%i",msgdsize(sps),msgdsize(d->sps)); ms_message("SPS changed ! %i,%i",(int)msgdsize(sps),(int)msgdsize(d->sps));
update_sps(d,sps); update_sps(d,sps);
update_pps(d,NULL); update_pps(d,NULL);
} }
...@@ -169,7 +169,7 @@ static bool_t check_pps_change(DecData *d, mblk_t *pps){ ...@@ -169,7 +169,7 @@ static bool_t check_pps_change(DecData *d, mblk_t *pps){
if (d->pps){ if (d->pps){
ret=(msgdsize(pps)!=msgdsize(d->pps)) || (memcmp(d->pps->b_rptr,pps->b_rptr,msgdsize(pps))!=0); ret=(msgdsize(pps)!=msgdsize(d->pps)) || (memcmp(d->pps->b_rptr,pps->b_rptr,msgdsize(pps))!=0);
if (ret) { if (ret) {
ms_message("PPS changed ! %i,%i",msgdsize(pps),msgdsize(d->pps)); ms_message("PPS changed ! %i,%i",(int)msgdsize(pps),(int)msgdsize(d->pps));
update_pps(d,pps); update_pps(d,pps);
} }
}else { }else {
......
...@@ -156,7 +156,7 @@ static mblk_t * skip_rfc2190_header(mblk_t *inm){ ...@@ -156,7 +156,7 @@ static mblk_t * skip_rfc2190_header(mblk_t *inm){
unsigned hdrLen; unsigned hdrLen;
char mode; char mode;
if (msgdsize(inm) < 5 ) { if (msgdsize(inm) < 5 ) {
ms_warning("RFC2190 packet too small (size %d) to scan!", msgdsize(inm)); ms_warning("RFC2190 packet too small (size %d) to scan!", (int)msgdsize(inm));
freemsg(inm); freemsg(inm);
return NULL; return NULL;
} }
...@@ -178,7 +178,7 @@ static mblk_t * skip_rfc2190_header(mblk_t *inm){ ...@@ -178,7 +178,7 @@ static mblk_t * skip_rfc2190_header(mblk_t *inm){
inm->b_rptr += hdrLen; inm->b_rptr += hdrLen;
} else { } else {
ms_warning("RFC2190 packet mode:%c%s too small (size %d)", mode, isIFrame ? ms_warning("RFC2190 packet mode:%c%s too small (size %d)", mode, isIFrame ?
" (I-Frame)":"", msgdsize(inm)); " (I-Frame)":"", (int)msgdsize(inm));
freemsg(inm); freemsg(inm);
inm=NULL; inm=NULL;
} }
......
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