On Tue, Sep 11, 2012 at 12:54 AM, Christian Schmidt <[email protected]>wrote:

> On 09/10/2012 11:22 AM, Luca Barbato wrote:
> > On 9/6/12 4:43 PM, Christian Schmidt wrote:
> >> +        pes->stream_type == 0x83 && pes->extended_stream_id == 0x72)
> >
> > Could we have 2 define for those values?
> >
> > Not sure if we could rework this patch to be a little more flexible
> though.
>
> I was considering that, but the same magic numbers are used in several
> places, see lines 602 and 626,
>
> A generic approach would probably store the stream & substream ID in the
> PES Context, so it could be matched against that value. That would also
> remove the need for an additional function, which only exists in case
> multiple such formats should be supported in the future. I am not sure,
> but aren't DTS-MA or DTS-HD constructed similarly?
>
>
No, DTS is different.
TrueHD/AC3 is special, because the TrueHD stream does not require the AC3
stream to be decoded. The AC3 stream is just being interleaved in there to
offer compat with players that don't do TrueHD.

DTS-HD however needs both the Core and the HD frames to be fully decoded.
You can decode the Core alone, but not the HD parts. There is no
"substream" like this in the mpeg-ts, its just one stream.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to