Re: [FFmpeg-devel] [PATCH] avformat/mpegts: ensure seekback for small probesize

2020-10-06 Thread Andriy Gelman
On Mon, 05. Oct 10:31, Marton Balint wrote: > > > On Sun, 4 Oct 2020, Andriy Gelman wrote: > > > From: Andriy Gelman > > > > get_packet_size() may read upto PROBE_PACKET_MAX_BUF bytes, which may be > > larger than probesize. > > > > Signed-off-by: Andriy Gelman > > --- > > > > An alternativ

Re: [FFmpeg-devel] [PATCH] avformat/mpegts: ensure seekback for small probesize

2020-10-05 Thread Marton Balint
On Sun, 4 Oct 2020, Andriy Gelman wrote: From: Andriy Gelman get_packet_size() may read upto PROBE_PACKET_MAX_BUF bytes, which may be larger than probesize. Signed-off-by: Andriy Gelman --- An alternative could be to make sure we don't read more than s->probesize bytes in get_packet_size(

[FFmpeg-devel] [PATCH] avformat/mpegts: ensure seekback for small probesize

2020-10-04 Thread Andriy Gelman
From: Andriy Gelman get_packet_size() may read upto PROBE_PACKET_MAX_BUF bytes, which may be larger than probesize. Signed-off-by: Andriy Gelman --- An alternative could be to make sure we don't read more than s->probesize bytes in get_packet_size(), but because this function is also called du