[FFmpeg-devel] [PATCH] fix reading first mpegps packet

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Sep 18 02:23:02 CEST 2011

On 17 Sep 2011, at 14:59, Arne de Bruijn <mail at arnedebruijn.nl> wrote:
> The first packet of mpeg pes files (starting with 00 00 01 e0) is ignored by
> ffmpeg because the sofdec-detection in mpegps_read_header eats the first
> byte. This patch adds a seek to prevent this problem (apparently the
> existing code tries to solve this by modifying m->header_state but this
> doesn't help since m->header_state is overwritten at the start of
> mpegps_read_pes_header).

Won't that solution keep the problem around in case of stream/piping input so it is not seekable?

More information about the ffmpeg-devel mailing list