[mythtv] [patch] AC3 patches
Tim Davies
tim at opensystems.net.au
Thu Jan 27 22:32:27 EST 2005
Isaac Richards wrote:
>On Thursday 27 January 2005 08:25 pm, Tim Davies wrote:
>
>
>>Isn't CheckAudioParams running on what could possibly be a new stream?
>>Which means the codec could change, and therefore avcodec_find_decoder
>>and avcodec_open need to be called in CheckAudioParams? It actually has
>>to verify that the codec has changed, and not rely on a sample_rate or
>>channels change. We mostly have Dolby 2.0 which has the same channels
>>and sample_rate as MPEG2 audio.
>>
>>
>
>All the codecs are already open at that point (from ScanStreams). No need to
>open them again. CheckAudioParams is for informing the NVP about what
>avformatdecoder is sending it, and reopening the codec on an audio format
>change, since most of them don't handle that gracefully in libavcodec. The
>NVP object doesn't care what the codec was.
>
>
>
But it does need to do SetupAudioStream if the codec changes...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-dev/attachments/20050128/0b9aba62/attachment.html
More information about the mythtv-dev
mailing list