changeset 3177:f5ee8f2afc83 libavformat

Fix aspect ratio. fixes issue404 avienc.c change by StevieS
author michael
date Thu, 27 Mar 2008 01:18:16 +0000
parents cf8bea8bc156
children 73b7ef886091
files avidec.c avienc.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Sat Mar 22 17:25:50 2008 +0000
+++ b/avidec.c	Thu Mar 27 01:18:16 2008 +0000
@@ -538,8 +538,8 @@
                 get_le32(pb);
                 get_le32(pb);
 
+                active_aspect.den= get_le16(pb);
                 active_aspect.num= get_le16(pb);
-                active_aspect.den= get_le16(pb);
                 active.num       = get_le32(pb);
                 active.den       = get_le32(pb);
                 get_le32(pb); //nbFieldsPerFrame
--- a/avienc.c	Sat Mar 22 17:25:50 2008 +0000
+++ b/avienc.c	Thu Mar 27 01:18:16 2008 +0000
@@ -297,8 +297,8 @@
             put_le32(pb, lrintf(1.0/av_q2d(stream->time_base)));
             put_le32(pb, stream->width );
             put_le32(pb, stream->height);
+            put_le16(pb, den);
             put_le16(pb, num);
-            put_le16(pb, den);
             put_le32(pb, stream->width );
             put_le32(pb, stream->height);
             put_le32(pb, 1); //progressive FIXME