[Ffmpeg-devel] fix some warnings

Luca Abeni lucabe72
Wed Jan 25 12:39:17 CET 2006


Hi Michael,

On Wed, 2006-01-25 at 12:18 +0100, Michael Niedermayer wrote:
[...]
> > @@ -6971,7 +6971,7 @@ static int decode_slice(H264Context *h){
> >  
> >  static int decode_unregistered_user_data(H264Context *h, int size){
> >      MpegEncContext * const s = &h->s;
> > -    uint8_t user_data[16+256];
> > +    char user_data[16+256];
> >      int e, build, i;
> 
> IMHO uint8_t is more correct here
Thanks for the feedback. The problem I was trying to fix here is that
gcc does not like a pointer to uint8_t as a first argument to sscanf():
h264.c: In function 'decode_unregistered_user_data':
h264.c:6985: warning: pointer targets in passing argument 1 of 'sscanf'
differ in signedness

If "char user_data[..]" is not ok, the other possible solution would be
to cast user_data to (char *) in the sscanf().

			Thanks,
				Luca
-- 
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !

 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Problemi di Liquidit?? Con Logos Finanziaria 30.000 ? in 24 ore a dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi clicca qui
* 
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2907&d=25-1





More information about the ffmpeg-devel mailing list