]> git.sesse.net Git - ffmpeg/commit
avcodec/videotoolbox: fix opaque_ref handling
authorwm4 <nfxjfg@googlemail.com>
Tue, 31 Oct 2017 14:15:27 +0000 (15:15 +0100)
committerAman Gupta <aman@tmm1.net>
Mon, 13 Nov 2017 23:10:07 +0000 (15:10 -0800)
commit9283a4f19b762b25bc8e5e8f402fefb9097a1397
treef7baeb3fd965dfcfa7d39a93498fc7d0276b90d1
parentb7f963c4444d709a89156fb0f094c232fe1eacd6
avcodec/videotoolbox: fix opaque_ref handling

This is a partial fix - to fix videotoolbox fully (with multithreaded
hwaccel decoding), much more work would be required.

Before this change, an assertion failure would trigger:

  $ ffmpeg -hwaccel videotoolbox -hwaccel_output_format videotoolbox_vld -i h264.ts -f null -y /dev/null
  Assertion (frame->private_ref && frame->private_ref->size == sizeof(FrameDecodeData)) || !(avctx->codec->capabilities & (1 << 1)) failed at libavcodec/decode.c:620

Signed-off-by: Aman Gupta <aman@tmm1.net>
libavcodec/videotoolbox.c