[MPlayer-dev-eng] [PATCH] hwac3 according format tag info from demuxer to decode ac3 or dts

Ulion ulion2002 at gmail.com
Mon May 5 02:32:41 CEST 2008


Hello,

Currently, hwac3 did not check the format tag from demuxer, indead, it
try to sync both ac3 and dts stream for the input audio stream.
For a good-sync audio stream, it's ok.
But for a bad-sync audio stream, it will switch between ac3 and dts
frequently, it will make the output audio not smooth.
Consider the format tag will identify whether audio stream is ac3 or
dts, and it won't changed during playing, even it changed, there must
be some notifaction or audio chain reinit triggered, so I made this
patch to let hwac3 select passthrough ac3 or dts by the format tag
info from demuxer, it fixed some bad-sync dts stream bad play problem
on my pc.
This patch will not break or lost any useful feature, when you need
force let mplayer identify an ac3 stream as dts stream, force the
format tag to 0x2001 will do what you want.
So, if there's no objection, I will commit this patch in 3 days.

-- 
Ulion
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ac3_dts_format_tag.diff
Type: application/octet-stream
Size: 835 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080505/41b04419/attachment.obj>


More information about the MPlayer-dev-eng mailing list