Mercurial > libavcodec.hg
comparison tiffenc.c @ 6313:ce8de7773485 libavcodec
Fix warning:
libavcodec/tiffenc.c:136: warning: pointer type mismatch in conditional expression
author | reimar |
---|---|
date | Sat, 02 Feb 2008 21:38:25 +0000 |
parents | 2b72f9bc4f06 |
children | 51a4d1e4d70a |
comparison
equal
deleted
inserted
replaced
6312:5f4bdfd1aa0e | 6313:ce8de7773485 |
---|---|
131 | 131 |
132 static void add_entry1(TiffEncoderContext * s, | 132 static void add_entry1(TiffEncoderContext * s, |
133 enum TiffTags tag, enum TiffTypes type, int val){ | 133 enum TiffTags tag, enum TiffTypes type, int val){ |
134 uint16_t w = val; | 134 uint16_t w = val; |
135 uint32_t dw= val; | 135 uint32_t dw= val; |
136 add_entry(s, tag, type, 1, type == TIFF_SHORT ? &w : &dw); | 136 add_entry(s, tag, type, 1, type == TIFF_SHORT ? (void *)&w : (void *)&dw); |
137 } | 137 } |
138 | 138 |
139 /** | 139 /** |
140 * Encode one strip in tiff file | 140 * Encode one strip in tiff file |
141 * | 141 * |