Browse Source

SCTE-104: add missing function

master
Christophe Massiot 8 years ago
parent
commit
67756eff24
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      scte/104.h

+ 6
- 1
scte/104.h View File

@ -27,7 +27,7 @@
/* /*
* Normative references: * Normative references:
* - SCTE 104 2004 (Automation to Compression Communications API)
* - SCTE 104 2012 (Automation to Compression Communications API)
*/ */
#ifndef __BITSTREAM_SCTE_104_H__ #ifndef __BITSTREAM_SCTE_104_H__
@ -203,6 +203,11 @@ static inline uint16_t scte104o_get_data_length(const uint8_t *p)
return (p[2] << 8) | p[3]; return (p[2] << 8) | p[3];
} }
static inline uint8_t *scte104o_get_data(const uint8_t *p)
{
return (uint8_t *)&p[4];
}
/***************************************************************************** /*****************************************************************************
* Multiple operation message * Multiple operation message
*****************************************************************************/ *****************************************************************************/

Loading…
Cancel
Save