SOURCES: ffmpeg-x264.patch - support for old api, too
arekm
arekm at pld-linux.org
Tue Sep 30 08:27:08 CEST 2008
Author: arekm Date: Tue Sep 30 06:27:08 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- support for old api, too
---- Files affected:
SOURCES:
ffmpeg-x264.patch (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/ffmpeg-x264.patch
diff -u SOURCES/ffmpeg-x264.patch:1.2 SOURCES/ffmpeg-x264.patch:1.3
--- SOURCES/ffmpeg-x264.patch:1.2 Thu Oct 26 14:34:34 2006
+++ SOURCES/ffmpeg-x264.patch Tue Sep 30 08:27:03 2008
@@ -1,24 +1,14 @@
---- trunk/libavcodec/x264.c 2006/02/20 19:01:29 5040
-+++ trunk/libavcodec/x264.c 2006/07/18 01:29:43 5780
-@@ -142,13 +142,18 @@
- x4->params.rc.b_stat_write = (avctx->flags & CODEC_FLAG_PASS1);
- if(avctx->flags & CODEC_FLAG_PASS2) x4->params.rc.b_stat_read = 1;
- else{
-- if(avctx->crf) x4->params.rc.i_rf_constant = avctx->crf;
-- else if(avctx->cqp > -1) x4->params.rc.i_qp_constant = avctx->cqp;
-+ if(avctx->crf){
-+ x4->params.rc.i_rc_method = X264_RC_CRF;
-+ x4->params.rc.f_rf_constant = avctx->crf;
-+ }else if(avctx->cqp > -1){
-+ x4->params.rc.i_rc_method = X264_RC_CQP;
-+ x4->params.rc.i_qp_constant = avctx->cqp;
-+ }
- }
-
- // if neither crf nor cqp modes are selected we have to enable the RC
- // we do it this way because we cannot check if the bitrate has been set
-- if(!(avctx->crf || (avctx->cqp > -1))) x4->params.rc.b_cbr = 1;
-+ if(!(avctx->crf || (avctx->cqp > -1))) x4->params.rc.i_rc_method = X264_RC_ABR;
+--- ffmpeg/libavcodec/libx264.c.org 2008-09-30 08:13:47.298284337 +0200
++++ ffmpeg/libavcodec/libx264.c 2008-09-30 08:16:20.034103090 +0200
+@@ -162,7 +162,11 @@
x4->params.i_bframe = avctx->max_b_frames;
x4->params.b_cabac = avctx->coder_type == FF_CODER_TYPE_AC;
++#if X264_BUILD > 60
+ x4->params.i_bframe_adaptive = avctx->b_frame_strategy;
++#else
++ x4->params.b_bframe_adaptive = avctx->b_frame_strategy;
++#endif
+ x4->params.i_bframe_bias = avctx->bframebias;
+ x4->params.b_bframe_pyramid = avctx->flags2 & CODEC_FLAG2_BPYRAMID;
+ avctx->has_b_frames= avctx->flags2 & CODEC_FLAG2_BPYRAMID ? 2 : !!avctx->max_b_frames;
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ffmpeg-x264.patch?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list