[xiph-commits] r10959 - trunk/ffmpeg2theora

j at svn.xiph.org j at svn.xiph.org
Sun Feb 26 14:54:43 PST 2006


Author: j
Date: 2006-02-26 14:54:40 -0800 (Sun, 26 Feb 2006)
New Revision: 10959

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
move vhook processing. now done before scaling, the same place vhooks are in ffmpeg.


Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2006-02-25 22:56:09 UTC (rev 10958)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2006-02-26 22:54:40 UTC (rev 10959)
@@ -585,6 +585,9 @@
                                 output=output_tmp;
                             }
                             // now output
+                            if(this->vhook)
+                                frame_hook_process((AVPicture *)output, PIX_FMT_YUV420P, venc->width,venc->height);
+
                             if(this->img_resample_ctx){
                                 img_resample(this->img_resample_ctx, 
                                         (AVPicture *)output_resized, 
@@ -593,8 +596,6 @@
                             else{
                                 output_resized=output;
                             }
-                            if(this->vhook)
-                                frame_hook_process((AVPicture *)output_resized, PIX_FMT_YUV420P, this->frame_width, this->frame_height);
 
                         }
                         ptr += len1;



More information about the commits mailing list