Browse Source

Merge commit '0dea4c77ccf5956561bb8991311b3d834bb5fa40'

* commit '0dea4c77ccf5956561bb8991311b3d834bb5fa40':
  h264: only ref cur_pic in update_thread_context if it is initialized

Conflicts:
	libavcodec/h264_slice.c

See: 0fc01ae33c
Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
6458e4750f
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      libavcodec/h264_slice.c

+ 5
- 2
libavcodec/h264_slice.c View File

@@ -613,8 +613,11 @@ int ff_h264_update_thread_context(AVCodecContext *dst,

h->cur_pic_ptr = REBASE_PICTURE(h1->cur_pic_ptr, h, h1);
ff_h264_unref_picture(h, &h->cur_pic);
if (h1->cur_pic.f.buf[0] && (ret = ff_h264_ref_picture(h, &h->cur_pic, &h1->cur_pic)) < 0)
return ret;
if (h1->cur_pic.f.buf[0]) {
ret = ff_h264_ref_picture(h, &h->cur_pic, &h1->cur_pic);
if (ret < 0)
return ret;
}

h->workaround_bugs = h1->workaround_bugs;
h->low_delay = h1->low_delay;


Loading…
Cancel
Save