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:48:05 +0000 (11:48 -0700)
commitce2330bdf896458131fcd00f9284c31617adcf01
treea16ca66518ba2bfd225fec243a1633ba8700e291
parente85c608a46445e3e491811630e33690c30591662
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>
libavcodec/videotoolboxenc.c