Mercurial > libavformat.hg
comparison avformat.h @ 3553:c3b9334f46ae libavformat
One-bit bitfields should probably be unsigned. Unfortunately, it is left
up to the compiler on how one bit fields are treated. gcc treats one-bit
bitfields as signed and allows for the -funsigned-field parameter. Other
compilers (like Sun C) treat one-bit bitfields as unsigned no matter what.
Patch by Erik Hovland erik hovland org
author | takis |
---|---|
date | Tue, 08 Jul 2008 23:20:22 +0000 |
parents | 4a1ecbbf5725 |
children | 5ad678c7e341 |
comparison
equal
deleted
inserted
replaced
3552:8bce09af18e6 | 3553:c3b9334f46ae |
---|---|
158 int width; | 158 int width; |
159 int height; | 159 int height; |
160 enum PixelFormat pix_fmt; | 160 enum PixelFormat pix_fmt; |
161 int channel; /**< used to select dv channel */ | 161 int channel; /**< used to select dv channel */ |
162 const char *standard; /**< tv standard, NTSC, PAL, SECAM */ | 162 const char *standard; /**< tv standard, NTSC, PAL, SECAM */ |
163 int mpeg2ts_raw:1; /**< force raw MPEG2 transport stream output, if possible */ | 163 unsigned int mpeg2ts_raw:1; /**< force raw MPEG2 transport stream output, if possible */ |
164 int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport | 164 unsigned int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport |
165 stream packet (only meaningful if | 165 stream packet (only meaningful if |
166 mpeg2ts_raw is TRUE) */ | 166 mpeg2ts_raw is TRUE) */ |
167 int initial_pause:1; /**< do not begin to play the stream | 167 unsigned int initial_pause:1; /**< do not begin to play the stream |
168 immediately (RTSP only) */ | 168 immediately (RTSP only) */ |
169 int prealloced_context:1; | 169 unsigned int prealloced_context:1; |
170 #if LIBAVFORMAT_VERSION_INT < (53<<16) | 170 #if LIBAVFORMAT_VERSION_INT < (53<<16) |
171 enum CodecID video_codec_id; | 171 enum CodecID video_codec_id; |
172 enum CodecID audio_codec_id; | 172 enum CodecID audio_codec_id; |
173 #endif | 173 #endif |
174 } AVFormatParameters; | 174 } AVFormatParameters; |