Skip to content

Commit

Permalink
updated audio interpretation.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Feb 2, 2014
1 parent 6fe60ea commit 7ff6f97
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mgmt_audio_scheduler/src/sx_mgmt_audio_scheduler.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,23 @@ static void audio_scheduler_slice_dump(

if(pid == 0x1100)
{
UINT8 stuffing = 0;
if(afc & 0x02)
{
stuffing = 1 + ts->payload.payload[0];
}

start_offset = stuffing;

if(PUSI_GET(ts->hdr))
{
start_offset += 20;
}

payload_size = sizeof(sMPEG2_TS_PAYLOAD) - start_offset;


#if 0
if(PUSI_GET(ts->hdr))
{
assert(afc == 0x01);
Expand Down Expand Up @@ -192,6 +209,7 @@ static void audio_scheduler_slice_dump(
assert(0);
}
}
#endif

// printf("copy 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x 0x%.2x\n",
// ts->payload.payload[start_offset],
Expand Down

0 comments on commit 7ff6f97

Please sign in to comment.