[FFmpeg-devel] [PATCH] H264 in TS detection

Michael Niedermayer michaelni
Sun Jul 27 15:26:12 CEST 2008


On Sat, Jul 26, 2008 at 07:20:32PM -0700, Baptiste Coudurier wrote:
> Hi,
> 
> Michael Niedermayer wrote:
> > Hi
> > 
> > maybeH264_dumpstream 
> > (see ftp and [FFmpeg-devel] Unplayable "JVT NAL" sequence)
> > Contains a H.264 stream that is missdetected as mpeg1video.
> > Patch below fixes it, i intend to apply it in 24h if there are no objections
> > from mans.
> > 
> > Index: libavformat/mpegts.c
> > ===================================================================
> > --- libavformat/mpegts.c	(revision 14235)
> > +++ libavformat/mpegts.c	(working copy)
> > @@ -970,7 +970,7 @@
> >              codec_id = CODEC_ID_AC3;
> >          } else {
> >              codec_type = CODEC_TYPE_VIDEO;
> > -            codec_id = CODEC_ID_MPEG1VIDEO;
> > +            codec_id = CODEC_ID_PROBE;
> >          }
> 
> Btw, shouldn't the type also be probed when codec id is probed ?

patch/commit to set_codec_from_probe_data() is welcome

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

While the State exists there can be no freedom; when there is freedom there
will be no State. -- Vladimir Lenin
-------------- 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/20080727/80808534/attachment.pgp>



More information about the ffmpeg-devel mailing list