Changeset f8823a8fd023052e26de9bc6624bb1373e1807f7
- Timestamp:
- 06/29/08 20:44:42
(2 months ago)
- Author:
- Rémi Denis-Courmont <rdenis@simphalempin.com>
- git-committer:
- Rémi Denis-Courmont <rdenis@simphalempin.com> 1214765082 +0300
- git-parent:
[425a85df64f1c1671ea9536f0140a611a1e0d7a5]
- git-author:
- David Flynn <davidf@rd.bbc.co.uk> 1214397898 +0000
- Message:
ts demux: add support for dirac streams via registration_descriptor
Signed-off-by: Rémi Denis-Courmont <rdenis@simphalempin.com>
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r172e22c |
rf8823a8 |
|
| 3547 | 3547 | } |
|---|
| 3548 | 3548 | } |
|---|
| | 3549 | else if( p_es->i_type == 0xd1 ) |
|---|
| | 3550 | { |
|---|
| | 3551 | dvbpsi_descriptor_t *p_dr; |
|---|
| | 3552 | |
|---|
| | 3553 | for( p_dr = p_es->p_first_descriptor; p_dr != NULL; |
|---|
| | 3554 | p_dr = p_dr->p_next ) |
|---|
| | 3555 | { |
|---|
| | 3556 | msg_Dbg( p_demux, " * es pid=%d type=%d dr->i_tag=0x%x", |
|---|
| | 3557 | p_es->i_pid, p_es->i_type, p_dr->i_tag ); |
|---|
| | 3558 | |
|---|
| | 3559 | if( p_dr->i_tag == 0x05 ) |
|---|
| | 3560 | { |
|---|
| | 3561 | /* Registration Descriptor */ |
|---|
| | 3562 | if( !memcmp( p_dr->p_data, "drac", 4 ) ) |
|---|
| | 3563 | { |
|---|
| | 3564 | /* registration descriptor for Dirac |
|---|
| | 3565 | * (backwards compatable with VC-2 (SMPTE Sxxxx:2008)) */ |
|---|
| | 3566 | pid->es->fmt.i_cat = VIDEO_ES; |
|---|
| | 3567 | pid->es->fmt.i_codec = VLC_FOURCC('d','r','a','c'); |
|---|
| | 3568 | } |
|---|
| | 3569 | else |
|---|
| | 3570 | { |
|---|
| | 3571 | msg_Warn( p_demux, |
|---|
| | 3572 | "unknown Registration Descriptor (%4.4s)", |
|---|
| | 3573 | p_dr->p_data ); |
|---|
| | 3574 | } |
|---|
| | 3575 | } |
|---|
| | 3576 | } |
|---|
| | 3577 | } |
|---|
| 3549 | 3578 | else if( p_es->i_type == 0xa0 ) |
|---|
| 3550 | 3579 | { |
|---|