From 72e043dd0fd2f216525285827531180af494b8a1 Mon Sep 17 00:00:00 2001 From: Erik Hovland Date: Tue, 8 Jul 2008 23:20:22 +0000 Subject: 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 --- libavdevice/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavdevice') 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; -- cgit v1.2.3