lavu/hwcontext_vaapi: drop a redundant check
vaapi_get_image_format() will be called in vaapi_map_frame(). So it's a double check, drop it to avoid redundancy. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
eb9070aba4
commit
523134587a
1 changed files with 0 additions and 6 deletions
|
|
@ -1019,12 +1019,6 @@ static int vaapi_map_to_memory(AVHWFramesContext *hwfc, AVFrame *dst,
|
|||
{
|
||||
int err;
|
||||
|
||||
if (dst->format != AV_PIX_FMT_NONE) {
|
||||
err = vaapi_get_image_format(hwfc->device_ctx, dst->format, NULL);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
|
||||
err = vaapi_map_frame(hwfc, dst, src, flags);
|
||||
if (err)
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue