]> granicus.if.org Git - libx264/commitdiff
Fix bug in b-pyramid strict
authorLamont Alston <wewk584@gmail.com>
Fri, 23 Oct 2009 18:01:13 +0000 (11:01 -0700)
committerFiona Glaser <fiona@x264.com>
Sun, 25 Oct 2009 19:05:48 +0000 (12:05 -0700)
Bug caused invalid streams in some situations.

encoder/encoder.c

index 70fa1f700f9f0a4bee61b0de73f79dfb1ded6165..4db7d91ceffe4179bc3e8338662b1e93cb879f08 100644 (file)
@@ -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;