From ece74ca07cd4f7729bdf6ba5b8be06c30da3a1af Mon Sep 17 00:00:00 2001 From: Lamont Alston Date: Fri, 23 Oct 2009 11:01:13 -0700 Subject: [PATCH] Fix bug in b-pyramid strict Bug caused invalid streams in some situations. --- encoder/encoder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/encoder/encoder.c b/encoder/encoder.c index 8520590b..02d469ac 100644 --- a/encoder/encoder.c +++ b/encoder/encoder.c @@ -1313,7 +1313,8 @@ static inline void x264_reference_hierarchy_reset( x264_t *h ) && h->frames.reference[ref]->i_type == X264_TYPE_BREF ) { int diff = h->i_frame_num - h->frames.reference[ref]->i_frame_num; - h->sh.mmco[h->sh.i_mmco_command_count++].i_difference_of_pic_nums = diff; + h->sh.mmco[h->sh.i_mmco_command_count].i_difference_of_pic_nums = diff; + h->sh.mmco[h->sh.i_mmco_command_count++].i_poc = h->frames.reference[ref]->i_poc; x264_frame_push_unused( h, x264_frame_pop( h->frames.reference ) ); h->b_ref_reorder[0] = 1; break; -- 2.47.3