Browse Source

Merge commit '40af330adf7fde8073271cf2b41ff9adc4c2bba9'

* commit '40af330adf7fde8073271cf2b41ff9adc4c2bba9':
  avconv: vda: Unlock the pixel buffer once it is accessed

See: c06fdacc3dc706e70d953917fea845532d3703ca
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer 9 years ago
parent
commit
7e85727b98
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ffmpeg_vda.c

+ 2 - 1
ffmpeg_vda.c

@@ -76,9 +76,10 @@ static int vda_retrieve_data(AVCodecContext *s, AVFrame *frame)
                   (const uint8_t **)data, linesize, vda->tmp_frame->format,
                   frame->width, frame->height);
 
-    ret = av_frame_copy_props(vda->tmp_frame, frame);
     CVPixelBufferUnlockBaseAddress(pixbuf, kCVPixelBufferLock_ReadOnly);
 
+    ret = av_frame_copy_props(vda->tmp_frame, frame);
+
     if (ret < 0)
         return ret;