diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder/aac_plugin.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/decoder/aac_plugin.c b/src/decoder/aac_plugin.c index d372ce5b1..19a7d7c9c 100644 --- a/src/decoder/aac_plugin.c +++ b/src/decoder/aac_plugin.c @@ -405,6 +405,11 @@ aac_stream_decode(struct decoder *mpd_decoder, struct input_stream *inStream) .sample_rate = sample_rate, }; + if (!audio_format_valid(&audio_format)) { + g_warning("aac: invalid audio format\n"); + break; + } + decoder_initialized(mpd_decoder, &audio_format, false, totalTime); initialized = true; |