1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

Fix aspect ratio.

fixes issue404
avienc.c change by StevieS

Originally committed as revision 12601 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-03-27 01:18:16 +00:00
parent 509fdb0b7e
commit 61559562f5
2 changed files with 2 additions and 2 deletions

View File

@ -538,8 +538,8 @@ static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_le32(pb); get_le32(pb);
get_le32(pb); get_le32(pb);
active_aspect.num= get_le16(pb);
active_aspect.den= get_le16(pb); active_aspect.den= get_le16(pb);
active_aspect.num= get_le16(pb);
active.num = get_le32(pb); active.num = get_le32(pb);
active.den = get_le32(pb); active.den = get_le32(pb);
get_le32(pb); //nbFieldsPerFrame get_le32(pb); //nbFieldsPerFrame

View File

@ -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, lrintf(1.0/av_q2d(stream->time_base)));
put_le32(pb, stream->width ); put_le32(pb, stream->width );
put_le32(pb, stream->height); put_le32(pb, stream->height);
put_le16(pb, num);
put_le16(pb, den); put_le16(pb, den);
put_le16(pb, num);
put_le32(pb, stream->width ); put_le32(pb, stream->width );
put_le32(pb, stream->height); put_le32(pb, stream->height);
put_le32(pb, 1); //progressive FIXME put_le32(pb, 1); //progressive FIXME