Merge commit 'b96f0ab3d29cdd9ea9ddabfb2052f72bf8615661'
authorClément Bœsch <u@pkh.me>
Sun, 19 Mar 2017 14:56:19 +0000 (15:56 +0100)
committerClément Bœsch <u@pkh.me>
Sun, 19 Mar 2017 14:56:19 +0000 (15:56 +0100)
* commit 'b96f0ab3d29cdd9ea9ddabfb2052f72bf8615661':
  h264: Kill broken disabled cruft

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

Simple merge
@@@ -844,17 -752,8 +844,8 @@@ int ff_h264_decode_ref_pic_marking(H264
                  mmco[i].opcode = opcode;
                  if (opcode == MMCO_SHORT2UNUSED || opcode == MMCO_SHORT2LONG) {
                      mmco[i].short_pic_num =
 -                        (sl->curr_pic_num - get_ue_golomb(gb) - 1) &
 +                        (sl->curr_pic_num - get_ue_golomb_long(gb) - 1) &
                              (sl->max_pic_num - 1);
- #if 0
-                     if (mmco[i].short_pic_num >= h->short_ref_count ||
-                         !h->short_ref[mmco[i].short_pic_num]) {
-                         av_log(s->avctx, AV_LOG_ERROR,
-                                "illegal short ref in memory management control "
-                                "operation %d\n", mmco);
-                         return -1;
-                     }
- #endif
                  }
                  if (opcode == MMCO_SHORT2LONG || opcode == MMCO_LONG2UNUSED ||
                      opcode == MMCO_LONG || opcode == MMCO_SET_MAX_LONG) {