avcodec/hevc: Fix integer overflow of entry_point_offset
[ffmpeg.git] / ffmpeg_vda.c
index b9f0975..fded39e 100644 (file)
@@ -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;