Skip to content

Commit

Permalink
fix ts decode (ossrs#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbesedm authored and winlinvip committed May 29, 2017
1 parent a613eb7 commit d1bd699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trunk/src/kernel/srs_kernel_ts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1670,7 +1670,7 @@ int SrsTsPayloadPES::decode(SrsStream* stream, SrsTsMessage** ppmsg)
// (1+x)B
if (PES_extension_flag_2) {
PES_extension_field_length = stream->read_1bytes();
PES_extension_field_length &= 0x07;
PES_extension_field_length &= 0x7F;

if (PES_extension_field_length > 0) {
if (!stream->require(PES_extension_field_length)) {
Expand Down Expand Up @@ -2462,7 +2462,7 @@ int SrsTsPayloadPMTESInfo::decode(SrsStream* stream)
elementary_PID = epv & 0x1FFF;

int16_t eilv = stream->read_2bytes();
const1_value1 = (epv >> 12) & 0x0f;
const1_value1 = (eilv >> 12) & 0x0f;
ES_info_length = eilv & 0x0FFF;

if (ES_info_length > 0) {
Expand Down

0 comments on commit d1bd699

Please sign in to comment.