summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'codec.c')
-rw-r--r--codec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/codec.c b/codec.c
index c5269b4..52e79bd 100644
--- a/codec.c
+++ b/codec.c
@@ -520,6 +520,10 @@ void CodecAudioOpen(AudioDecoder * audio_decoder, const char *name,
av_parser_init(audio_decoder->AudioCtx->codec_id))) {
Fatal(_("codec: can't init audio parser\n"));
}
+ audio_decoder->SampleRate = 0;
+ audio_decoder->Channels = 0;
+ audio_decoder->HwSampleRate = 0;
+ audio_decoder->HwChannels = 0;
}
/**