From b3c9a5fb485b82eb228e9a7e6609323ec9fcd8d5 Mon Sep 17 00:00:00 2001 From: Zhou Chang Date: Fri, 6 Apr 2012 15:57:40 +0800 Subject: Change to none-block in CBR mode --- src/gen6_mfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen6_mfc.c b/src/gen6_mfc.c index eb2ab96..c9648cf 100644 --- a/src/gen6_mfc.c +++ b/src/gen6_mfc.c @@ -1679,8 +1679,8 @@ gen6_mfc_avc_encode_picture(VADriverContextP ctx, /*Programing bcs pipeline*/ gen6_mfc_avc_pipeline_programing(ctx, encode_state, encoder_context); //filling the pipeline gen6_mfc_run(ctx, encode_state, encoder_context); - gen6_mfc_stop(ctx, encode_state, encoder_context, ¤t_frame_bits_size); if ( rate_control_mode == VA_RC_CBR) { + gen6_mfc_stop(ctx, encode_state, encoder_context, ¤t_frame_bits_size); //gen6_mfc_hrd_context_check(encode_state, mfc_context); if ( gen6_mfc_bit_rate_control_context_update( encode_state, mfc_context, current_frame_bits_size) ) { gen6_mfc_hrd_context_update(encode_state, mfc_context); -- cgit v1.2.3