avcodec/videotoolboxenc: fix mutex/cond leak in error path
authorThomas Guillem <thomas@gllm.fr>
Mon, 11 Jun 2018 14:21:17 +0000 (16:21 +0200)
committerAman Gupta <aman@tmm1.net>
Mon, 18 Jun 2018 18:49:38 +0000 (11:49 -0700)
commit70799fae35d179aa52f04514fb0b431052dc6fcf
treeafa895b90f48b2d25317404d0d61d73a1f764a3c
parente049f7c24fc6aa5fc925f860e2ad940a75cfd84f
avcodec/videotoolboxenc: fix mutex/cond leak in error path

The leak could happen when the vtenc_create_encoder() function failed.

Signed-off-by: Aman Gupta <aman@tmm1.net>
(cherry picked from commit ce2330bdf896458131fcd00f9284c31617adcf01)
libavcodec/videotoolboxenc.c