hwcontext: Improve allocation in derived contexts
authorMark Thompson <sw@jkqxz.net>
Sat, 4 Mar 2017 23:57:40 +0000 (23:57 +0000)
committerMark Thompson <sw@jkqxz.net>
Sun, 30 Apr 2017 16:33:18 +0000 (17:33 +0100)
commitc5714b51aad41fef56dddac1d542e7fc6b984627
tree36b79528a6d02075880423c820246178cbc26de9
parente1c5d56b18b82e3fb42382b1b1f972e8b371fc38
hwcontext: Improve allocation in derived contexts

Use the flags argument of av_hwframe_ctx_create_derived() to pass the
mapping flags which will be used on allocation.  Also, set the format
and hardware context on the allocated frame automatically - the user
should not be required to do this themselves.
doc/APIchanges
libavutil/hwcontext.c
libavutil/hwcontext.h
libavutil/hwcontext_internal.h
libavutil/version.h