diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-29 14:17:29 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-29 14:17:29 +0200 |
commit | b1284a4b4a6c7f80fa27ef3909929a4a7a950713 (patch) | |
tree | bbe346930772659783670d7b1f86cdf28d9a1790 /doc/examples | |
parent | d0a1605134a8f697f3676b74518baec6e390d196 (diff) | |
parent | 539e5ac2ecfec2e2f441222a43fb0583643ea607 (diff) | |
download | ffmpeg-b1284a4b4a6c7f80fa27ef3909929a4a7a950713.tar.gz |
Merge commit '539e5ac2ecfec2e2f441222a43fb0583643ea607'
* commit '539e5ac2ecfec2e2f441222a43fb0583643ea607':
examples/qsvdec: free the lavc decoder before closing MFX/VAAPI
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/qsvdec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/qsvdec.c b/doc/examples/qsvdec.c index 2f26f41ebd..fd934bebd3 100644 --- a/doc/examples/qsvdec.c +++ b/doc/examples/qsvdec.c @@ -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; |