[xiph-commits] r16519 - branches/theora-monty-post-1-1/examples

xiphmont at svn.xiph.org xiphmont at svn.xiph.org
Tue Aug 25 23:03:50 PDT 2009


Author: xiphmont
Date: 2009-08-25 23:03:50 -0700 (Tue, 25 Aug 2009)
New Revision: 16519

Modified:
   branches/theora-monty-post-1-1/examples/encoder_example.c
Log:
Correct same bug setting pixel aspect ration on y4o input



Modified: branches/theora-monty-post-1-1/examples/encoder_example.c
===================================================================
--- branches/theora-monty-post-1-1/examples/encoder_example.c	2009-08-26 06:02:35 UTC (rev 16518)
+++ branches/theora-monty-post-1-1/examples/encoder_example.c	2009-08-26 06:03:50 UTC (rev 16519)
@@ -962,8 +962,8 @@
           if(video_fps_n == -1)video_fps_n = s->m.video.fps_n;
           if(video_fps_d == -1)video_fps_d = s->m.video.fps_d;
           interlace = (s->m.video.i == Y4O_I_PROGRESSIVE ? 'p' : 'i');
-          video_par_n = s->m.video.pa_n;
-          video_par_d = s->m.video.pa_d;
+          if(video_par_n == -1)video_par_n = s->m.video.pa_n;
+          if(video_par_d == -1)video_par_d = s->m.video.pa_d;
           chroma_fmt = s->m.video.format;
 
           setup_video(f,test);



More information about the commits mailing list