mirror of https://git.ffmpeg.org/ffmpeg.git
wtv: ignore VIDEOINFOHEADER2 picture aspect ratio information, as it is unreliable
Originally committed as revision 26327 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
c66f53cf8b
commit
b070bcfe8a
|
@ -166,12 +166,7 @@ static int parse_videoinfoheader2(AVFormatContext *s, AVStream *st)
|
||||||
{
|
{
|
||||||
ByteIOContext *pb = s->pb;
|
ByteIOContext *pb = s->pb;
|
||||||
|
|
||||||
url_fskip(pb, 32);
|
url_fskip(pb, 72); // picture aspect ratio is unreliable
|
||||||
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);
|
|
||||||
ff_get_bmp_header(pb, st);
|
ff_get_bmp_header(pb, st);
|
||||||
|
|
||||||
return 72 + 40;
|
return 72 + 40;
|
||||||
|
|
Loading…
Reference in New Issue