diff options
Diffstat (limited to 'ffmpeg_vda.c')
-rw-r--r-- | ffmpeg_vda.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg_vda.c b/ffmpeg_vda.c index d15648dd8e..6fe4ed45ea 100644 --- a/ffmpeg_vda.c +++ b/ffmpeg_vda.c @@ -77,6 +77,8 @@ static int vda_retrieve_data(AVCodecContext *s, AVFrame *frame) frame->width, frame->height); ret = av_frame_copy_props(vda->tmp_frame, frame); + CVPixelBufferUnlockBaseAddress(pixbuf, kCVPixelBufferLock_ReadOnly); + if (ret < 0) return ret; |