From 49de6bdc5f9601daea75bad88506d62207ff6ba6 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 17 Mar 2017 11:19:27 +0100 Subject: [PATCH] generic-pc/audio.cpp: add default-section to c->codec_id switch ... to avoid compiler warnings Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/01d57e6199082842823d24bbc377f629c3121b6f Author: vanhofen Date: 2017-03-17 (Fri, 17 Mar 2017) Origin message was: ------------------ - generic-pc/audio.cpp: add default-section to c->codec_id switch ... to avoid compiler warnings ------------------ This commit was generated by Migit --- generic-pc/audio.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generic-pc/audio.cpp b/generic-pc/audio.cpp index 54d5457..862bf2b 100644 --- a/generic-pc/audio.cpp +++ b/generic-pc/audio.cpp @@ -225,7 +225,9 @@ void cAudio::getAudioInfo(int &type, int &layer, int &freq, int &bitrate, int &m break; case AV_CODEC_ID_MLP: type = AUDIO_FMT_MLP; - break; + break; + default: + break; } freq = c->sample_rate; bitrate = c->bit_rate;