diff options
author | bossiel <bossiel@yahoo.fr> | 2011-08-10 22:59:15 +0000 |
---|---|---|
committer | bossiel <bossiel@yahoo.fr> | 2011-08-10 22:59:15 +0000 |
commit | 1ebf5a5fcda0c9154e22ed02404fd46525a7fd9f (patch) | |
tree | 4b6214a7142ab1035cb0e47444e88af38e712421 /thirdparties/patches | |
download | doubango-1.0.zip doubango-1.0.tar.gz |
Move deprecated v1.0 from trunk to branches1.0
Diffstat (limited to 'thirdparties/patches')
-rw-r--r-- | thirdparties/patches/libx24.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/thirdparties/patches/libx24.patch b/thirdparties/patches/libx24.patch new file mode 100644 index 0000000..b54f191 --- /dev/null +++ b/thirdparties/patches/libx24.patch @@ -0,0 +1,43 @@ +Index: libx264.c
+===================================================================
+--- libx264.c (revision 24652)
++++ libx264.c (working copy)
+@@ -100,7 +100,14 @@
+ } + + x4->pic.i_pts = frame->pts; +- x4->pic.i_type = X264_TYPE_AUTO; ++ ++ // by MDI ++ if(frame->pict_type == FF_I_TYPE){ ++ x4->pic.i_type = X264_TYPE_IDR; ++ } ++ else{ ++ x4->pic.i_type = X264_TYPE_AUTO; ++ } + } + + do { +@@ -153,7 +160,8 @@
+ X264Context *x4 = avctx->priv_data; + + x4->sei_size = 0; +- x264_param_default(&x4->params); ++ x264_param_default_preset(&x4->params, "veryfast", "zerolatency"); // By MDI ++ //x264_param_default(&x4->params); + + x4->params.pf_log = X264_log; + x4->params.p_log_private = avctx; +@@ -164,6 +172,12 @@
+ x4->params.rc.i_vbv_buffer_size = avctx->rc_buffer_size / 1000; + x4->params.rc.i_vbv_max_bitrate = avctx->rc_max_rate / 1000; + x4->params.rc.b_stat_write = avctx->flags & CODEC_FLAG_PASS1; ++ ++ // --by MDI begin ++ //x4->params.i_slice_max_size = 1350; ++ //x4->params.rc.i_lookahead = 0; ++ // --by MDI end ++ + if (avctx->flags & CODEC_FLAG_PASS2) { + x4->params.rc.b_stat_read = 1; + } else { |