X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=avconv_vda.c;h=d86076e79e752cc0a3d10e2b1a69bc5000eca680;hb=fc4c27c4edfc6a5f9bc7c696e823652474a65ce8;hp=40f87c4f7659d7c3791618dd6261b1a291c6016d;hpb=1839fafa951308237c4672ffd9a94f927b26eac7;p=ffmpeg diff --git a/avconv_vda.c b/avconv_vda.c index 40f87c4f765..d86076e79e7 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;