summaryrefslogtreecommitdiff
path: root/codec.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-10 00:15:38 +0100
committerJohns <johns98@gmx.net>2011-12-10 00:15:38 +0100
commit749b0d672142c685556fa9f3788bff732920460b (patch)
treecff47acb11c9bd55688790ba4904d8845d6eddeb /codec.c
parente1d8609143bc661b9ad84c91abb815ca0e9f9e36 (diff)
downloadvdr-plugin-softhddevice-749b0d672142c685556fa9f3788bff732920460b.tar.gz
vdr-plugin-softhddevice-749b0d672142c685556fa9f3788bff732920460b.tar.bz2
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.
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;
}
/**