Browse Source

test: ts_pes: don't append PES header as continued payload

pull/162/head
François Cartegnie 3 years ago
committed by Steve Lhomme
parent
commit
005e602316
  1. 7
      test/modules/demux/ts_pes.c

7
test/modules/demux/ts_pes.c

@ -92,6 +92,11 @@ int main(void)
pes.transport = TS_TRANSPORT_PES;
pes.gather.pp_last = &pes.gather.p_data;
/* filler packet */
const uint8_t dummy0[] = {
0xFF,
};
/* General case, aligned payloads */
/* payload == 0 */
const uint8_t aligned0[] = {
@ -149,7 +154,7 @@ int main(void)
ASSERT(!ts_pes_Gather(&cb, &pes, pkt, true, true, 0));
ASSERT(!output);
ASSERT(pes.gather.i_data_size == 256);
PKT_FROMSZ(aligned1, 150-sizeof(aligned1));
PKT_FROMSZ(dummy0, 150-sizeof(dummy0));
ASSERT(ts_pes_Gather(&cb, &pes, pkt, false, true, 0));
ASSERT(output);
block_ChainProperties(output, &outputcount, &outputsize, NULL);

Loading…
Cancel
Save