Skip to content

Commit

Permalink
fix: mpeg-ts service description tag length
Browse files Browse the repository at this point in the history
  • Loading branch information
ireader committed Mar 16, 2024
1 parent 8bc32a5 commit c7dc69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmpeg/source/mpeg-element-descriptor.c
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ size_t service_extension_descriptor_write(uint8_t* data, size_t bytes)
if (bytes < 2 + n)
return 0;
data[0] = SERVICE_ID;
data[1] = 2 + n;
data[1] = n;
memcpy(data + 2, SERVICE_NAME, n);
return 2 + n;
}
Expand Down

0 comments on commit c7dc69c

Please sign in to comment.