Mercurial > libavformat.hg
diff mpegts.c @ 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 | 2f191d610db9 |
| children | f306b45cab7e |
line wrap: on
line diff
--- a/mpegts.c Tue Jul 08 14:07:37 2008 +0000 +++ b/mpegts.c Tue Jul 08 23:20:22 2008 +0000 @@ -63,8 +63,8 @@ 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;
