diff --git a/avconv_vda.c b/avconv_vda.c index 40f87c4f76..d86076e79e 100644 --- a/avconv_vda.c +++ b/avconv_vda.c @@ -76,6 +76,8 @@ static int vda_retrieve_data(AVCodecContext *s, AVFrame *frame) data, linesize, vda->tmp_frame->format, frame->width, frame->height); + CVPixelBufferUnlockBaseAddress(pixbuf, kCVPixelBufferLock_ReadOnly); + ret = av_frame_copy_props(vda->tmp_frame, frame); if (ret < 0) return ret;