Commit 7e85727b authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '40af330a'

* commit '40af330a':
  avconv: vda: Unlock the pixel buffer once it is accessed

See: c06fdaccMerged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 8d4460f1 40af330a
......@@ -76,9 +76,10 @@ static int vda_retrieve_data(AVCodecContext *s, AVFrame *frame)
(const uint8_t **)data, linesize, vda->tmp_frame->format,
frame->width, frame->height);
ret = av_frame_copy_props(vda->tmp_frame, frame);
CVPixelBufferUnlockBaseAddress(pixbuf, kCVPixelBufferLock_ReadOnly);
ret = av_frame_copy_props(vda->tmp_frame, frame);
if (ret < 0)
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment