mirror of https://git.ffmpeg.org/ffmpeg.git
Merge commit '539e5ac2ecfec2e2f441222a43fb0583643ea607'
* commit '539e5ac2ecfec2e2f441222a43fb0583643ea607': examples/qsvdec: free the lavc decoder before closing MFX/VAAPI Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
b1284a4b4a
|
@ -468,6 +468,10 @@ finish:
|
|||
|
||||
av_frame_free(&frame);
|
||||
|
||||
if (decoder_ctx)
|
||||
av_freep(&decoder_ctx->hwaccel_context);
|
||||
avcodec_free_context(&decoder_ctx);
|
||||
|
||||
free_surfaces(&decode);
|
||||
|
||||
if (decode.mfx_session)
|
||||
|
@ -477,10 +481,6 @@ finish:
|
|||
if (dpy)
|
||||
XCloseDisplay(dpy);
|
||||
|
||||
if (decoder_ctx)
|
||||
av_freep(&decoder_ctx->hwaccel_context);
|
||||
avcodec_free_context(&decoder_ctx);
|
||||
|
||||
avio_close(output_ctx);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue