mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
fftools/ffmpeg_mux_init: change 1-bit bitfields from int to unsigned
They cannot store 1 as signed, only 0 and -1. Avoids warnings such as: implicit truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1 [-Wsingle-bit-bitfield-constant-conversion]
This commit is contained in:
parent
ca6f0192f2
commit
23c00d8c89
@ -288,9 +288,9 @@ static int enc_stats_init(OutputStream *ost, EncStats *es, int pre,
|
|||||||
static const struct {
|
static const struct {
|
||||||
enum EncStatsType type;
|
enum EncStatsType type;
|
||||||
const char *str;
|
const char *str;
|
||||||
int pre_only:1;
|
unsigned pre_only:1;
|
||||||
int post_only:1;
|
unsigned post_only:1;
|
||||||
int need_input_data:1;
|
unsigned need_input_data:1;
|
||||||
} fmt_specs[] = {
|
} fmt_specs[] = {
|
||||||
{ ENC_STATS_FILE_IDX, "fidx" },
|
{ ENC_STATS_FILE_IDX, "fidx" },
|
||||||
{ ENC_STATS_STREAM_IDX, "sidx" },
|
{ ENC_STATS_STREAM_IDX, "sidx" },
|
||||||
|
Loading…
Reference in New Issue
Block a user