]> git.sesse.net Git - vlc/commitdiff
Restore resizing functionality with ffmpeg swscale. Please check if crop and padding...
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 2 Feb 2008 12:56:23 +0000 (12:56 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 2 Feb 2008 12:56:23 +0000 (12:56 +0000)
modules/stream_out/transcode.c

index 35f394d9e9f55388ecc50646337db9e2e7aa8435..7b664991fded9eefcb3c19d0cb081b9d3c029b8f 100644 (file)
@@ -2283,7 +2283,11 @@ static int transcode_video_process( sout_stream_t *p_stream,
 
                 id->pp_filter[id->i_filter]->p_module =
                     module_Need( id->pp_filter[id->i_filter],
+#if ( (defined(HAVE_FFMPEG_SWSCALE_H) || defined(HAVE_LIBSWSCALE_TREE)) )
+                                 "video filter2", "scale", VLC_TRUE );
+#else
                                  "crop padd", 0, 0 );
+#endif
                 if( id->pp_filter[id->i_filter]->p_module )
                 {
                     id->pp_filter[id->i_filter]->p_owner =