ebur128analysis: Initialize variables to silence warnings

This commit is contained in:
Jonas Kvinge 2023-07-12 16:26:17 +02:00
parent 23f0c56eba
commit 8a44a41abb
1 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ class EBUR128AnalysisImpl {
static GstFlowReturn NewBufferCallback(GstAppSink *app_sink, gpointer self);
};
FrameFormat::FrameFormat(GstCaps *caps) {
FrameFormat::FrameFormat(GstCaps *caps) : channels(0), samplerate(0) {
GstStructure *structure = gst_caps_get_structure(caps, 0);
QString format_str = gst_structure_get_string(structure, "format");
@ -279,7 +279,7 @@ void EBUR128State::AddFrames(const char *data, size_t size) {
Q_ASSERT(size % bytes_per_frame == 0);
auto num_frames = size / bytes_per_frame;
int ebur_error;
int ebur_error = 0;
switch (dsc.format) {
case FrameFormat::DataFormat::S16:
ebur_error = ebur128_add_frames_short(&*st, reinterpret_cast<const int16_t*>(data), num_frames);