asticode / go-astits

Demux and mux MPEG Transport Streams (.ts) natively in GO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PES parsing fails with out of range index

Hakkin opened this issue · comments

Using the provided example program in master, I get an error trying to dump PES info.

ERRO[0000] astits: fetching data failed: astits: getting next data failed: astits: building new data failed: astits: parsing PES data failed: astits: getting next bytes failed: astits: slice length is 15922, offset 15935 is invalid

This seems to have broke @8d58895.

Here's an example ts that triggers this if you need it.

The command I'm running is astits data -d all -i test.ts

First off, thanks for providing an example file 👍

Second, was everything working before 8d58895?

Yes, I checked out @f5a59e8 and the same command works fine.

Never mind, there was indeed a problem. Should be all good now!

Can you confirm?

Yes, that seems to have fixed it. Thanks for the quick patch!

Cheers