Skip to content
Snippets Groups Projects
  • Mark Thompson's avatar
    d59c6a3a
    hwcontext: Improve allocation in derived contexts · d59c6a3a
    Mark Thompson authored
    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.
    
    (cherry picked from commit c5714b51)
    d59c6a3a
    History
    hwcontext: Improve allocation in derived contexts
    Mark Thompson authored
    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.
    
    (cherry picked from commit c5714b51)