diff options
author | Erik Hovland <erik@hovland.org> | 2008-07-09 03:20:22 +0400 |
---|---|---|
committer | Panagiotis Issaris <takis.issaris@uhasselt.be> | 2008-07-09 03:20:22 +0400 |
commit | 72e043dd0fd2f216525285827531180af494b8a1 (patch) | |
tree | 7650c8034e24f84396cd8c0c3ca6361ef4d197c0 /libavdevice | |
parent | d921f03fccfa931427fbe85a0a0721dc51d1d2d8 (diff) |
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
Originally committed as revision 14131 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavdevice/audio.c b/libavdevice/audio.c index 4fcd3afea0..172c5f1a38 100644 --- a/libavdevice/audio.c +++ b/libavdevice/audio.c @@ -47,7 +47,7 @@ typedef struct { int channels; int frame_size; /* in bytes ! */ int codec_id; - int flip_left : 1; + unsigned int flip_left : 1; uint8_t buffer[AUDIO_BLOCK_SIZE]; int buffer_ptr; } AudioData; |