Browse Source

vda: unlock the pixel buffer base address.

The pixel buffer base address is never unlocked this causes
a bug with some pixel format types that are produced natively
by the hardware decoder: the first buffer was always used.
Unlock the pixel buffer base address fixes the issue.
tags/n2.8
Sebastien Zwickert Clément Bœsch 10 years ago
parent
commit
c06fdacc3d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ffmpeg_vda.c

+ 2
- 0
ffmpeg_vda.c View 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;



Loading…
Cancel
Save