mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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
This commit is contained in:
parent
d921f03fcc
commit
72e043dd0f
@ -47,7 +47,7 @@ typedef struct {
|
|||||||
int channels;
|
int channels;
|
||||||
int frame_size; /* in bytes ! */
|
int frame_size; /* in bytes ! */
|
||||||
int codec_id;
|
int codec_id;
|
||||||
int flip_left : 1;
|
unsigned int flip_left : 1;
|
||||||
uint8_t buffer[AUDIO_BLOCK_SIZE];
|
uint8_t buffer[AUDIO_BLOCK_SIZE];
|
||||||
int buffer_ptr;
|
int buffer_ptr;
|
||||||
} AudioData;
|
} AudioData;
|
||||||
|
@ -160,13 +160,13 @@ typedef struct AVFormatParameters {
|
|||||||
enum PixelFormat pix_fmt;
|
enum PixelFormat pix_fmt;
|
||||||
int channel; /**< used to select dv channel */
|
int channel; /**< used to select dv channel */
|
||||||
const char *standard; /**< tv standard, NTSC, PAL, SECAM */
|
const char *standard; /**< tv standard, NTSC, PAL, SECAM */
|
||||||
int mpeg2ts_raw:1; /**< force raw MPEG2 transport stream output, if possible */
|
unsigned int mpeg2ts_raw:1; /**< force raw MPEG2 transport stream output, if possible */
|
||||||
int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport
|
unsigned int mpeg2ts_compute_pcr:1; /**< compute exact PCR for each transport
|
||||||
stream packet (only meaningful if
|
stream packet (only meaningful if
|
||||||
mpeg2ts_raw is TRUE) */
|
mpeg2ts_raw is TRUE) */
|
||||||
int initial_pause:1; /**< do not begin to play the stream
|
unsigned int initial_pause:1; /**< do not begin to play the stream
|
||||||
immediately (RTSP only) */
|
immediately (RTSP only) */
|
||||||
int prealloced_context:1;
|
unsigned int prealloced_context:1;
|
||||||
#if LIBAVFORMAT_VERSION_INT < (53<<16)
|
#if LIBAVFORMAT_VERSION_INT < (53<<16)
|
||||||
enum CodecID video_codec_id;
|
enum CodecID video_codec_id;
|
||||||
enum CodecID audio_codec_id;
|
enum CodecID audio_codec_id;
|
||||||
|
@ -63,8 +63,8 @@ typedef struct MpegTSSectionFilter {
|
|||||||
int section_index;
|
int section_index;
|
||||||
int section_h_size;
|
int section_h_size;
|
||||||
uint8_t *section_buf;
|
uint8_t *section_buf;
|
||||||
int check_crc:1;
|
unsigned int check_crc:1;
|
||||||
int end_of_section_reached:1;
|
unsigned int end_of_section_reached:1;
|
||||||
SectionCallback *section_cb;
|
SectionCallback *section_cb;
|
||||||
void *opaque;
|
void *opaque;
|
||||||
} MpegTSSectionFilter;
|
} MpegTSSectionFilter;
|
||||||
|
Loading…
Reference in New Issue
Block a user