[FFmpeg-cvslog] commit: wtv: ignore VIDEOINFOHEADER2 picture aspect ratio information, as it is unreliable (Peter Ross )
git at videolan.org
git
Fri Jan 14 12:32:21 CET 2011
ffmpeg | branch: master | Peter Ross <pross at xvid.org> | Fri Jan 14 08:28:27 2011 +0000| [b070bcfe8a305ab7fb550092f01a728b60b2ca5b] | committer: Peter Ross
wtv: ignore VIDEOINFOHEADER2 picture aspect ratio information, as it is unreliable
Originally committed as revision 26327 to svn://svn.ffmpeg.org/ffmpeg/trunk
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b070bcfe8a305ab7fb550092f01a728b60b2ca5b
---
libavformat/wtv.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
diff --git a/libavformat/wtv.c b/libavformat/wtv.c
index d17682c..ad6463d 100644
--- a/libavformat/wtv.c
+++ b/libavformat/wtv.c
@@ -166,12 +166,7 @@ static int parse_videoinfoheader2(AVFormatContext *s, AVStream *st)
{
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