summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorErik Hovland <erik@hovland.org>2008-07-08 23:20:22 +0000
committerPanagiotis Issaris <takis.issaris@uhasselt.be>2008-07-08 23:20:22 +0000
commit72e043dd0fd2f216525285827531180af494b8a1 (patch)
tree7650c8034e24f84396cd8c0c3ca6361ef4d197c0 /libavformat/mpegts.c
parentd921f03fccfa931427fbe85a0a0721dc51d1d2d8 (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 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 6f36e0ace1..a10f5dca92 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -63,8 +63,8 @@ typedef struct MpegTSSectionFilter {
int section_index;
int section_h_size;
uint8_t *section_buf;
- int check_crc:1;
- int end_of_section_reached:1;
+ unsigned int check_crc:1;
+ unsigned int end_of_section_reached:1;
SectionCallback *section_cb;
void *opaque;
} MpegTSSectionFilter;