avcodec/videotoolboxenc: split initialization
authorThomas Guillem <thomas@gllm.fr>
Mon, 11 Jun 2018 14:21:18 +0000 (16:21 +0200)
committerAman Gupta <aman@tmm1.net>
Mon, 18 Jun 2018 18:48:05 +0000 (11:48 -0700)
commit9e11d27c25bf9bbd53fa23e892946752096f378b
treefcc93e43a5953e7b40e9e34f0caaca9f6db3ef79
parentce2330bdf896458131fcd00f9284c31617adcf01
avcodec/videotoolboxenc: split initialization

Split vtenc_init() into vtenc_init() (VTEncContext initialization) and
vtenc_configure_encoder() (creates the vt session).

This commit will allow to restart the vt session while encoding.

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