Mercurial > libavformat.hg
diff 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 |
line wrap: on
line diff
--- a/avformat.h Tue Jul 08 14:07:37 2008 +0000 +++ b/avformat.h Tue Jul 08 23:20:22 2008 +0000 @@ -160,13 +160,13 @@ enum PixelFormat pix_fmt; int channel; /**< used to select dv channel */ const char *standard; /**< tv standard, NTSC, PAL, SECAM */ - int mpeg2ts_raw:1; /**< force raw MPEG2 transport stream output, if possible */ - int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport - stream packet (only meaningful if - mpeg2ts_raw is TRUE) */ - int initial_pause:1; /**< do not begin to play the stream - immediately (RTSP only) */ - int prealloced_context:1; + unsigned int mpeg2ts_raw:1; /**< force raw MPEG2 transport stream output, if possible */ + unsigned int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport + stream packet (only meaningful if + mpeg2ts_raw is TRUE) */ + unsigned int initial_pause:1; /**< do not begin to play the stream + immediately (RTSP only) */ + unsigned int prealloced_context:1; #if LIBAVFORMAT_VERSION_INT < (53<<16) enum CodecID video_codec_id; enum CodecID audio_codec_id;