Commit b1284a4b authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit '539e5ac2'

* commit '539e5ac2':
  examples/qsvdec: free the lavc decoder before closing MFX/VAAPI
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents d0a16051 539e5ac2
...@@ -468,6 +468,10 @@ finish: ...@@ -468,6 +468,10 @@ finish:
av_frame_free(&frame); av_frame_free(&frame);
if (decoder_ctx)
av_freep(&decoder_ctx->hwaccel_context);
avcodec_free_context(&decoder_ctx);
free_surfaces(&decode); free_surfaces(&decode);
if (decode.mfx_session) if (decode.mfx_session)
...@@ -477,10 +481,6 @@ finish: ...@@ -477,10 +481,6 @@ finish:
if (dpy) if (dpy)
XCloseDisplay(dpy); XCloseDisplay(dpy);
if (decoder_ctx)
av_freep(&decoder_ctx->hwaccel_context);
avcodec_free_context(&decoder_ctx);
avio_close(output_ctx); avio_close(output_ctx);
return ret; return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment