[x264-devel] commit: Fix bug in b-pyramid strict (Lamont Alston )
git version control
git at videolan.org
Sun Oct 25 20:06:08 CET 2009
x264 | branch: master | Lamont Alston <wewk584 at gmail.com> | Fri Oct 23 11:01:13 2009 -0700| [ece74ca07cd4f7729bdf6ba5b8be06c30da3a1af] | committer: Jason Garrett-Glaser
Fix bug in b-pyramid strict
Bug caused invalid streams in some situations.
> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=ece74ca07cd4f7729bdf6ba5b8be06c30da3a1af
---
encoder/encoder.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/encoder/encoder.c b/encoder/encoder.c
index 8520590..02d469a 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;
More information about the x264-devel
mailing list