Mercurial > libavformat.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
3552:8bce09af18e6 | 3553:c3b9334f46ae |
---|---|
61 | 61 |
62 typedef struct MpegTSSectionFilter { | 62 typedef struct MpegTSSectionFilter { |
63 int section_index; | 63 int section_index; |
64 int section_h_size; | 64 int section_h_size; |
65 uint8_t *section_buf; | 65 uint8_t *section_buf; |
66 int check_crc:1; | 66 unsigned int check_crc:1; |
67 int end_of_section_reached:1; | 67 unsigned int end_of_section_reached:1; |
68 SectionCallback *section_cb; | 68 SectionCallback *section_cb; |
69 void *opaque; | 69 void *opaque; |
70 } MpegTSSectionFilter; | 70 } MpegTSSectionFilter; |
71 | 71 |
72 struct MpegTSFilter { | 72 struct MpegTSFilter { |