|
Last change
on this file was
2,
checked in by jglee, 11 years ago
|
|
first commit
|
-
Property svn:executable set to
*
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: ts_priv.c $ |
|---|
| 11 | * $brcm_Revision: 1 $ |
|---|
| 12 | * $brcm_Date: 2/7/05 11:30p $ |
|---|
| 13 | * |
|---|
| 14 | * [File Description:] |
|---|
| 15 | * |
|---|
| 16 | * Revision History: |
|---|
| 17 | * |
|---|
| 18 | * $brcm_Log: /BSEAV/lib/mpeg2_ts_parse/ts_priv.c $ |
|---|
| 19 | * |
|---|
| 20 | * 1 2/7/05 11:30p dlwin |
|---|
| 21 | * Merge down for release 2005_REFSW_MERGETOMAIN: |
|---|
| 22 | * |
|---|
| 23 | * Irvine_BSEAVSW_Devel/1 8/29/03 5:02p marcusk |
|---|
| 24 | * Initial Version. |
|---|
| 25 | * |
|---|
| 26 | ***************************************************************************/ |
|---|
| 27 | #include "bstd.h" |
|---|
| 28 | #include "ts_priv.h" |
|---|
| 29 | |
|---|
| 30 | TS_PSI_descriptor TS_P_getDescriptor( const uint8_t *p_descBfr, uint32_t descriptorsLength, int descriptorNum ) |
|---|
| 31 | { |
|---|
| 32 | TS_PSI_descriptor descriptor; |
|---|
| 33 | int i; |
|---|
| 34 | uint32_t byteOffset = 0; |
|---|
| 35 | |
|---|
| 36 | descriptor = NULL; |
|---|
| 37 | |
|---|
| 38 | for( i = 0; byteOffset < descriptorsLength; i++ ) |
|---|
| 39 | { |
|---|
| 40 | descriptor = &p_descBfr[byteOffset]; |
|---|
| 41 | byteOffset += p_descBfr[byteOffset+1] + 2; |
|---|
| 42 | |
|---|
| 43 | if( i == descriptorNum ) |
|---|
| 44 | break; |
|---|
| 45 | else |
|---|
| 46 | descriptor = NULL; |
|---|
| 47 | } |
|---|
| 48 | |
|---|
| 49 | return descriptor; |
|---|
| 50 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.