[FFmpeg-devel] Collection of patches

Michael Niedermayer michaelni
Wed Apr 23 13:35:37 CEST 2008

On Wed, Apr 23, 2008 at 09:15:40AM +0200, Thorsten Jordan wrote:
> Michael Niedermayer schrieb:
> > On Tue, Apr 22, 2008 at 12:36:02PM +0200, Thorsten Jordan wrote:
> > [...]
> >> So thanks for reading so far and here are the patches:
> >>
> > 
> >> Make AVCHD (mts) files give better PTS values, as PCR packets are
> >> scanned ignoring the mts<->ts difference:
> >> mts_pcr_parse_syncbyte_check.patch
> > 
> > mans ?
> it may look a bit hackish but shows up a problem when decoding .mts
> files, as they are not handled specially by ffmpeg. The TS demuxer just
> scans for the next 0x47 startcode, skipping the 4 bytes of the counter
> that are stored in each mts-"packet" before the TS part. Since the first
> byte of that counter is <= 0x3f, that patch should be valid (it can
> never be 0x47). Imho the demuxer should handle mts specially, because
> what if any of the bytes 1-3 of that counter are 0x47 by coincidence?

Now your patch looks really wrong. Where can i find a .mts file?

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080423/207d1064/attachment.pgp>

More information about the ffmpeg-devel mailing list