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.
Showing
- doc/APIchanges 4 additions, 0 deletionsdoc/APIchanges
- libavutil/hwcontext.c 13 additions, 1 deletionlibavutil/hwcontext.c
- libavutil/hwcontext.h 3 additions, 1 deletionlibavutil/hwcontext.h
- libavutil/hwcontext_internal.h 5 additions, 0 deletionslibavutil/hwcontext_internal.h
- libavutil/version.h 1 addition, 1 deletionlibavutil/version.h
Loading
Please register or sign in to comment