[Ffmpeg-cvslog] r7735 - trunk/libavcodec/cook.c
Michael Niedermayer
michaelni
Sun Jan 28 03:44:54 CET 2007
Hi
On Sat, Jan 27, 2007 at 06:30:54PM +0100, banan wrote:
> Author: banan
> Date: Sat Jan 27 18:30:54 2007
> New Revision: 7735
>
> Modified:
> trunk/libavcodec/cook.c
>
> Log:
> Get rid of one warning.
>
>
> Modified: trunk/libavcodec/cook.c
> ==============================================================================
> --- trunk/libavcodec/cook.c (original)
> +++ trunk/libavcodec/cook.c Sat Jan 27 18:30:54 2007
> @@ -1155,7 +1155,7 @@
>
> static int cook_decode_init(AVCodecContext *avctx)
> {
> - COOKextradata *e = avctx->extradata;
> + COOKextradata *e = (COOKextradata *)avctx->extradata;
> COOKContext *q = avctx->priv_data;
typedef struct __attribute__((__packed__)){
/* codec data start */
uint32_t cookversion; //in network order, bigendian
uint16_t samples_per_frame; //amount of samples per frame per channel, bigendian
uint16_t subbands; //amount of bands used in the frequency domain, bigendian
/* Mono extradata ends here. */
uint32_t unused;
uint16_t js_subband_start; //bigendian
uint16_t js_vlc_bits; //bigendian
/* Stereo extradata ends here. */
} COOKextradata;
remove this this is not valid C code! __attribute__((__packed__)) is not
part of the c standard
see bytestream.h
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20070128/84be27f3/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list