Advertisement
Guest User

Untitled

a guest
Jun 18th, 2016
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. From 1b14541f2b2e532744f1445dfa7ae2a50a784e94 Mon Sep 17 00:00:00 2001
  2. From: Hendrik Leppkes <h.leppkes@gmail.com>
  3. Date: Sat, 18 Jun 2016 12:27:38 +0200
  4. Subject: [PATCH] h264_sei: don't reset the x264 build info once read
  5.  
  6. ---
  7. libavcodec/h264.c | 1 +
  8. libavcodec/h264_sei.c | 1 -
  9. 2 files changed, 1 insertion(+), 1 deletion(-)
  10.  
  11. diff --git a/libavcodec/h264.c b/libavcodec/h264.c
  12. index 5413668..307344a 100644
  13. --- a/libavcodec/h264.c
  14. +++ b/libavcodec/h264.c
  15. @@ -434,6 +434,7 @@ static int h264_init_context(AVCodecContext *avctx, H264Context *h)
  16. h->frame_recovered = 0;
  17. h->poc.prev_frame_num = -1;
  18. h->sei.frame_packing.frame_packing_arrangement_cancel_flag = -1;
  19. + h->sei.unregistered.x264_build = -1;
  20.  
  21. h->next_outputed_poc = INT_MIN;
  22. for (i = 0; i < MAX_DELAYED_PIC_COUNT; i++)
  23. diff --git a/libavcodec/h264_sei.c b/libavcodec/h264_sei.c
  24. index d37cff7..d0596dc 100644
  25. --- a/libavcodec/h264_sei.c
  26. +++ b/libavcodec/h264_sei.c
  27. @@ -38,7 +38,6 @@ static const uint8_t sei_num_clock_ts_table[9] = {
  28.  
  29. void ff_h264_sei_uninit(H264SEIContext *h)
  30. {
  31. - h->unregistered.x264_build = -1;
  32. h->recovery_point.recovery_frame_cnt = -1;
  33.  
  34. h->picture_timing.dpb_output_delay = 0;
  35. --
  36. 2.7.2.windows.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement