Search
j0ke.net Open Build Service
>
Projects
>
multimedia
:
SL11
>
x264
> x264-rewrite-ffmpeg-defaults.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File x264-rewrite-ffmpeg-defaults.patch of Package x264 (Revision 2)
Currently displaying revision
2
,
show latest
diff -ur x264-snapshot-20110225-2245.orig/encoder/encoder.c x264-snapshot-20110225-2245/encoder/encoder.c --- x264-snapshot-20110225-2245.orig/encoder/encoder.c 2011-02-25 22:45:04.000000000 +0100 +++ x264-snapshot-20110225-2245/encoder/encoder.c 2011-02-26 14:24:02.144281162 +0100 @@ -487,12 +487,8 @@ score += h->param.analyse.inter == 0 && h->param.analyse.i_subpel_refine == 8; if( score >= 5 ) { - x264_log( h, X264_LOG_ERROR, "broken ffmpeg default settings detected\n" ); - x264_log( h, X264_LOG_ERROR, "use an encoding preset (e.g. -vpre medium)\n" ); - x264_log( h, X264_LOG_ERROR, "preset usage: -vpre <speed> -vpre <profile>\n" ); - x264_log( h, X264_LOG_ERROR, "speed presets are listed in x264 --help\n" ); - x264_log( h, X264_LOG_ERROR, "profile is optional; x264 defaults to high\n" ); - return -1; + /* broken ffmpeg defaults, set to h264 defaults */ + x264_param_default( &h->param ); } }