Advertisement
Guest User

h264_seek_recovered_1.patch

a guest
Jan 5th, 2019
362
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.65 KB | None | 0 0
  1. Index: libavcodec/h264_refs.c
  2. ===================================================================
  3. --- libavcodec/h264_refs.c  (revision 4313)
  4. +++ libavcodec/h264_refs.c  (working copy)
  5. @@ -816,6 +816,9 @@
  6.      if (   err >= 0
  7.          && h->long_ref_count==0
  8.          && (   h->short_ref_count<=2
  9. +// ==> Start patch MPC
  10. +            || 1
  11. +// ==> End patch MPC
  12.              || pps_ref_count[0] <= 2 && pps_ref_count[1] <= 1 && h->avctx->has_b_frames
  13.              || pps_ref_count[0] <= 1 + (h->picture_structure != PICT_FRAME) && pps_ref_count[1] <= 1)
  14.          && pps_ref_count[0]<=2 + (h->picture_structure != PICT_FRAME) + (2*!h->has_recovery_point)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement