Merge commit '0ba471d7d864c712f45d7ac6aca4829aba025adc'
authorClément Bœsch <u@pkh.me>
Sun, 19 Jun 2016 10:53:19 +0000 (12:53 +0200)
committerClément Bœsch <u@pkh.me>
Sun, 19 Jun 2016 11:00:28 +0000 (13:00 +0200)
* commit '0ba471d7d864c712f45d7ac6aca4829aba025adc':
  h264: eliminate copy_fields

Added a copy of default_ref which isn't present in Libav.

Merged-by: Clément Bœsch <u@pkh.me>
1  2 
libavcodec/h264_slice.c

@@@ -418,10 -403,25 +414,27 @@@ int ff_h264_update_thread_context(AVCod
      // extradata/NAL handling
      h->is_avc = h1->is_avc;
      h->nal_length_size = h1->nal_length_size;
 +    h->sei.unregistered.x264_build = h1->sei.unregistered.x264_build;
  
-     // POC timing
-     copy_fields(h, h1, poc, current_slice);
+     memcpy(&h->poc,        &h1->poc,        sizeof(h->poc));
+     h->curr_pic_num      = h1->curr_pic_num;
+     h->max_pic_num       = h1->max_pic_num;
++    memcpy(h->default_ref, h1->default_ref, sizeof(h->default_ref));
+     memcpy(h->short_ref,   h1->short_ref,   sizeof(h->short_ref));
+     memcpy(h->long_ref,    h1->long_ref,    sizeof(h->long_ref));
+     memcpy(h->delayed_pic, h1->delayed_pic, sizeof(h->delayed_pic));
+     memcpy(h->last_pocs,   h1->last_pocs,   sizeof(h->last_pocs));
+     h->next_output_pic   = h1->next_output_pic;
+     h->next_outputed_poc = h1->next_outputed_poc;
+     memcpy(h->mmco, h1->mmco, sizeof(h->mmco));
+     h->mmco_index      = h1->mmco_index;
+     h->mmco_reset      = h1->mmco_reset;
+     h->long_ref_count  = h1->long_ref_count;
+     h->short_ref_count = h1->short_ref_count;
  
      copy_picture_range(h->short_ref, h1->short_ref, 32, h, h1);
      copy_picture_range(h->long_ref, h1->long_ref, 32, h, h1);