Skip to content

Commit

Permalink
Add comments for c117681
Browse files Browse the repository at this point in the history
Signed-off-by: Manish Patel <[email protected]>
  • Loading branch information
manishj-patel committed Jul 17, 2014
1 parent 9031b40 commit 379c5dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mgmt_audio_decoder/src/sx_mgmt_audio_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static UINT8 slice_start_find(

*pes_payload_size = ntohs(pes_ext->length) - 14;

// To make Piracast work with Sony Xperia
// PES packet length is zero for Sony Xperia
assert((*pes_payload_size == 1920) || (*pes_payload_size == -14));

return 1;
Expand Down
4 changes: 3 additions & 1 deletion mgmt_video_decoder/src/sx_mgmt_video_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ static UINT8 slice_start_find(

curr_ptr += sizeof(sPES_EXT);

// To make it work with Sony Xperia
// The adaptation field is present in the TS header of
// Sony Xperia. Due to this initial byte of PES payload
// becomes 0x0a
if((*curr_ptr != 0x05) && (*curr_ptr != 0x0a))
{
printf("0x%x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x 0x%x\n",
Expand Down

0 comments on commit 379c5dc

Please sign in to comment.