[FFmpeg-devel] [PATCH v1 1/1] vaapi_hevc: Fix double-free issue.

Decai Lin decai.lin at intel.com
Thu Mar 21 11:29:43 EET 2019


From: "Yan, FengX" <fengx.yan at intel.com>

Signed-off-by: Yan, FengX <fengx.yan at intel.com>
Signed-off-by: Decai Lin <decai.lin at intel.com>
---
 libavcodec/vaapi_hevc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vaapi_hevc.c b/libavcodec/vaapi_hevc.c
index 19aabcd..373ffc4 100644
--- a/libavcodec/vaapi_hevc.c
+++ b/libavcodec/vaapi_hevc.c
@@ -271,7 +271,7 @@ static int vaapi_hevc_end_frame(AVCodecContext *avctx)
 
     ret = ff_vaapi_decode_issue(avctx, &pic->pic);
     if (ret < 0)
-        goto fail;
+        return ret;
 
     return 0;
 fail:
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list