[Ffmpeg-cvslog] r8608 - in trunk: Changelog doc/ffmpeg-doc.texi libavcodec/Makefile libavcodec/allcodecs.c libavcodec/avcodec.h libavcodec/tiff.c libavcodec/tiff.h libavcodec/tiffenc.c

Uoti Urpala uoti.urpala
Wed Apr 4 16:29:04 CEST 2007


On Wed, 2007-04-04 at 16:14 +0200, Michel Bardiaux wrote:
> >> +    add_entry(s, TIFF_WIDTH,             TIFF_LONG,     1,      (uint32_t[]) {s->width});
> 
> This is a recent gccism; plain simple &s->width works just as well.

It's not a gccism, and &s->width would not work right.
(uint32_t[]){s->width} is a standard C (99) compound literal.
&s->width would be a pointer to int, which is wrong as a pointer to
uint32_t is needed.





More information about the ffmpeg-cvslog mailing list