[Ffmpeg-cvslog] r7735 - trunk/libavcodec/cook.c

Benjamin Larsson banan
Sun Jan 28 09:37:13 CET 2007


Michael Niedermayer wrote:

>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
>
>[...]
>
>  
>
Ok.

MvH
Benjamin Larsson

-- 
new tiny signature





More information about the ffmpeg-cvslog mailing list