[FFmpeg-cvslog] r26327 - trunk/libavformat/wtv.c

pross subversion
Fri Jan 14 09:28:28 CET 2011


Author: pross
Date: Fri Jan 14 09:28:27 2011
New Revision: 26327

Log:
wtv: ignore VIDEOINFOHEADER2 picture aspect ratio information, as it is unreliable

Modified:
   trunk/libavformat/wtv.c

Modified: trunk/libavformat/wtv.c
==============================================================================
--- trunk/libavformat/wtv.c	Thu Jan 13 07:22:43 2011	(r26326)
+++ trunk/libavformat/wtv.c	Fri Jan 14 09:28:27 2011	(r26327)
@@ -166,12 +166,7 @@ static int parse_videoinfoheader2(AVForm
 {
     ByteIOContext *pb = s->pb;
 
-    url_fskip(pb, 32);
-    st->codec->bit_rate = get_le32(pb);
-    url_fskip(pb, 20);
-    st->sample_aspect_ratio.num = get_le32(pb);
-    st->sample_aspect_ratio.den = get_le32(pb);
-    url_fskip(pb, 8);
+    url_fskip(pb, 72);  // picture aspect ratio is unreliable
     ff_get_bmp_header(pb, st);
 
     return 72 + 40;



More information about the ffmpeg-cvslog mailing list