[mythtv] [patch] PMT tracking in ffmpeg

J. Donavan Stanley jdonavan at jdonavan.net
Fri Oct 22 09:55:08 UTC 2004


Daniel Thor Kristjansson wrote:

>
> The ffmpeg library only looks at the PAT and PMT tables when it 
> initially opens an MPEG Transport Stream. This is a currently a 
> problem in LiveTV mode, but we work around it by rewriting the PID 
> values to always be consistent. But this hack doesn't work if the 
> number of audio streams change, or if we simply want to avoid the 
> rewriting hack.
>
> This patch fixes this with respect to PMT tables, which are the ones 
> causing us problems. I basically keep listening for PMT tables and 
> whenever I see one I delete any unneeded streams and open any streams 
> that we need in the with the new PMT. There is also a callback which 
> lets our avformatdecoder cope with the changes.


Committed, thanks!


More information about the mythtv-dev mailing list