From 749b0d672142c685556fa9f3788bff732920460b Mon Sep 17 00:00:00 2001 From: Johns Date: Sat, 10 Dec 2011 00:15:38 +0100 Subject: Video enhancements. Pass PTS to video codec. Flush audio buffer on channel change. Sync audio + video stream. Add workaround for Intel VA-API driver that forgets OSD position/size. --- codec.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'codec.c') 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; } /** -- cgit v1.2.3