Browse Source

lavc/vaapi_encode: Fix leak in error case

Fixes CID 1442564.
tags/n4.3
Mark Thompson 6 years ago
parent
commit
177a90b1a3
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/vaapi_encode.c

+ 1
- 0
libavcodec/vaapi_encode.c View File

@@ -1101,6 +1101,7 @@ int ff_vaapi_encode_send_frame(AVCodecContext *avctx, const AVFrame *frame)
return 0;

fail:
vaapi_encode_free(avctx, pic);
return err;
}



Loading…
Cancel
Save