[x264-devel] commit: Use POC type 2 for streams with no B-frames (Jason Garrett-Glaser )
git at videolan.org
git at videolan.org
Sat Sep 4 01:24:50 CEST 2010
x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon Aug 30 12:32:31 2010 -0700| [a67e619bcdabecb03e7d44d86615157e3a3d00f2] | committer: Jason Garrett-Glaser
Use POC type 2 for streams with no B-frames
Saves a few bits per slice header.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=a67e619bcdabecb03e7d44d86615157e3a3d00f2
---
encoder/set.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/encoder/set.c b/encoder/set.c
index 2c93618..2b3bbce 100644
--- a/encoder/set.c
+++ b/encoder/set.c
@@ -135,7 +135,7 @@ void x264_sps_init( x264_sps_t *sps, int i_id, x264_param_t *param )
while( (1 << sps->i_log2_max_frame_num) <= max_frame_num )
sps->i_log2_max_frame_num++;
- sps->i_poc_type = 0;
+ sps->i_poc_type = param->i_bframe ? 0 : 2;
if( sps->i_poc_type == 0 )
{
int max_delta_poc = (param->i_bframe + 2) * (!!param->i_bframe_pyramid + 1) * 2;
More information about the x264-devel
mailing list