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

Michael Niedermayer michaelni at gmx.at
Sun Sep 18 01:15:52 CEST 2011

On Sat, Sep 17, 2011 at 02:59:00PM +0200, Arne de Bruijn wrote:
> Hi,
> 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).

thanks, patch applied

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 3
"Rare item" - "Common item with rare defect or maybe just a lie"
"Professional" - "'Toy' made in china, not functional except as doorstop"
"Experts will know" - "The seller hopes you are not an expert"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110918/540834dd/attachment.asc>

More information about the ffmpeg-devel mailing list