]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
One bit fields should probably be unsigned. Unfortunately, it is left up to the compi...
authortakis <takis@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 8 Jul 2008 23:20:22 +0000 (23:20 +0000)
committertakis <takis@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Tue, 8 Jul 2008 23:20:22 +0000 (23:20 +0000)
-funsigned-field parameter. Other compilers (like Sun C) treat one bit fields as unsigned no matter what.
Patch by Erik Hovland erik hovland org

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14131 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavdevice/audio.c
libavformat/avformat.h
libavformat/mpegts.c

index 4fcd3afea0d2f5150abab9919b150244374ef5d6..172c5f1a3831bc1abd657ab18c3522cb97ebb91f 100644 (file)
@@ -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;
index af93b7cff26d2a06111d96ef7ed182bfb41de6c6..93ed4ae1f0ec07e8d68515995e56c2c9fe40ed6e 100644 (file)
@@ -160,13 +160,13 @@ typedef struct AVFormatParameters {
     enum PixelFormat pix_fmt;
     int channel; /**< used to select dv channel */
     const char *standard; /**< tv standard, NTSC, PAL, SECAM */
-    int mpeg2ts_raw:1;  /**< force raw MPEG2 transport stream output, if possible */
-    int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport
-                                  stream packet (only meaningful if
-                                  mpeg2ts_raw is TRUE) */
-    int initial_pause:1;       /**< do not begin to play the stream
-                                  immediately (RTSP only) */
-    int prealloced_context:1;
+    unsigned int mpeg2ts_raw:1;  /**< force raw MPEG2 transport stream output, if possible */
+    unsigned int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport
+                                            stream packet (only meaningful if
+                                            mpeg2ts_raw is TRUE) */
+    unsigned int initial_pause:1;       /**< do not begin to play the stream
+                                            immediately (RTSP only) */
+    unsigned int prealloced_context:1;
 #if LIBAVFORMAT_VERSION_INT < (53<<16)
     enum CodecID video_codec_id;
     enum CodecID audio_codec_id;
index 6f36e0ace14243db58cc0a23d4385112352db876..a10f5dca92eba827727b71d68b5e83b8550aa5ed 100644 (file)
@@ -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;