[x264-devel] [PATCH] disable bframe adaptive can't work

Limin Wang lance.lmwang at gmail.com
Wed Jul 11 04:38:21 CEST 2007


Hi,

> Seems that the patch got lost...

Sorry, attached again, by the test, I can get expect result for B-frame, 
but sometime, more than 1 P-frame will be inserted which is strange.

That's say, I expect it should be:
IPBBBPBBBPBBBP

but sometime, it'll:
IPBBBPPBBBPPP

Thanks,
Limin
-------------- next part --------------
Index: encoder/slicetype.c
===================================================================
--- encoder/slicetype.c	(revision 664)
+++ encoder/slicetype.c	(working copy)
@@ -425,7 +425,7 @@
 //      fprintf( stderr, "frm%d+%d: %d <=> %d, I:%d/%d \n",
 //               frames[0]->i_frame, j-1, pthresh, pcost/i_mb_count,
 //               frames[j+1]->i_intra_mbs[j+1], i_mb_count );
-        if( pcost > pthresh*i_mb_count || frames[j+1]->i_intra_mbs[j+1] > i_mb_count/3 )
+        if( h->param.b_bframe_adaptive && (pcost > pthresh*i_mb_count || frames[j+1]->i_intra_mbs[j+1] > i_mb_count/3) )
         {
             frames[j]->i_type = X264_TYPE_P;
             break;
-------------- next part --------------
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list