Commit 98ac40c5 authored by michael's avatar michael

Fix aspect ratio.

fixes issue404
avienc.c change by StevieS


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12601 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent be021549
......@@ -538,8 +538,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_le32(pb);
get_le32(pb);
active_aspect.num= get_le16(pb);
active_aspect.den= get_le16(pb);
active_aspect.num= get_le16(pb);
active.num = get_le32(pb);
active.den = get_le32(pb);
get_le32(pb); //nbFieldsPerFrame
......
......@@ -297,8 +297,8 @@ static int avi_write_header(AVFormatContext *s)
put_le32(pb, lrintf(1.0/av_q2d(stream->time_base)));
put_le32(pb, stream->width );
put_le32(pb, stream->height);
put_le16(pb, num);
put_le16(pb, den);
put_le16(pb, num);
put_le32(pb, stream->width );
put_le32(pb, stream->height);
put_le32(pb, 1); //progressive FIXME
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment