Browse Source

Fixes incorrect check for payload_offset

See http://github.com/gfto/libtsfuncs/issues/2
lars18th 6 years ago
parent
commit
6fb0de0bb7
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tsfuncs.c

+ 1
- 1
tsfuncs.c View File

265
 	if (!ts_header->payload_field && ts_header->adapt_len > 183)
265
 	if (!ts_header->payload_field && ts_header->adapt_len > 183)
266
 		goto return_error;
266
 		goto return_error;
267
 
267
 
268
-	if (ts_header->payload_offset > TS_MAX_PAYLOAD_SIZE) // Validity check
268
+	if (ts_header->payload_offset > TS_PACKET_SIZE) // Validity check
269
 		goto return_error;
269
 		goto return_error;
270
 
270
 
271
 	ts_header->payload_size = TS_PACKET_SIZE - ts_header->payload_offset;
271
 	ts_header->payload_size = TS_PACKET_SIZE - ts_header->payload_offset;

Loading…
Cancel
Save