swscale/x86/rgb2rgb_template: Fix planar2x() for short width
[ffmpeg.git] / ffmpeg_vda.c
index d15648d..6fe4ed4 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);
                   frame->width, frame->height);
 
     ret = av_frame_copy_props(vda->tmp_frame, frame);
+    CVPixelBufferUnlockBaseAddress(pixbuf, kCVPixelBufferLock_ReadOnly);
+
     if (ret < 0)
         return ret;
 
     if (ret < 0)
         return ret;