mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-02-26 08:22:31 +00:00
Matroska & WAVPACK: fix more uninitialized variables
This commit is contained in:
parent
7a58f6e3f3
commit
7a9ceec6a5
@ -22,6 +22,15 @@ const uint32_t sample_rates [] = {
|
||||
6000, 8000, 9600, 11025, 12000, 16000, 22050,
|
||||
24000, 32000, 44100, 48000, 64000, 88200, 96000, 192000 };
|
||||
|
||||
wavpack_meta_t::wavpack_meta_t()
|
||||
: channel_count(0)
|
||||
, bits_per_sample(0)
|
||||
, sample_rate(0)
|
||||
, samples_per_block(0)
|
||||
, has_correction(false)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
little_endian_to_native(void *data,
|
||||
const char *format) {
|
||||
|
@ -24,7 +24,7 @@
|
||||
#if defined(COMP_MSC)
|
||||
#pragma pack(push,1)
|
||||
#endif
|
||||
typedef struct PACKED_STRUCTURE {
|
||||
struct PACKED_STRUCTURE wavpack_header_t {
|
||||
char ck_id [4]; // "wvpk"
|
||||
uint32_t ck_size; // size of entire frame (minus 8, of course)
|
||||
uint16_t version; // 0x403 for now
|
||||
@ -35,18 +35,20 @@ typedef struct PACKED_STRUCTURE {
|
||||
uint32_t block_samples; // # samples in this block
|
||||
uint32_t flags; // various flags for id and decoding
|
||||
uint32_t crc; // crc for actual decoded data
|
||||
} wavpack_header_t;
|
||||
};
|
||||
#if defined(COMP_MSC)
|
||||
#pragma pack(pop)
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
struct wavpack_meta_t {
|
||||
int channel_count;
|
||||
int bits_per_sample;
|
||||
uint32_t sample_rate;
|
||||
uint32_t samples_per_block;
|
||||
bool has_correction;
|
||||
} wavpack_meta_t;
|
||||
|
||||
wavpack_meta_t();
|
||||
};
|
||||
|
||||
// or-values for "flags"
|
||||
|
||||
|
@ -100,6 +100,7 @@ struct kax_track_t {
|
||||
, passthrough(false)
|
||||
, min_cache(0)
|
||||
, max_cache(0)
|
||||
, max_blockadd_id(0)
|
||||
, lacing_flag(true)
|
||||
, default_duration(0)
|
||||
, v_width(0)
|
||||
|
Loading…
Reference in New Issue
Block a user