[FFmpeg-cvslog] qsv: Fix loading multiple plugins

Luca Barbato git at videolan.org
Wed Apr 13 18:31:46 CEST 2016


ffmpeg | branch: master | Luca Barbato <lu_zero at gentoo.org> | Tue Mar 15 14:10:05 2016 +0100| [92c1a83ee9394b39d68f6affd9104752a03714f8] | committer: Luca Barbato

qsv: Fix loading multiple plugins

av_get_token does not strip the trailing separator.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=92c1a83ee9394b39d68f6affd9104752a03714f8
---

 libavcodec/qsv.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c
index 3e892e8..e08518b 100644
--- a/libavcodec/qsv.c
+++ b/libavcodec/qsv.c
@@ -133,6 +133,8 @@ int ff_qsv_init_internal_session(AVCodecContext *avctx, mfxSession *session,
                 goto load_plugin_fail;
             }
 
+            if (*load_plugins)
+                load_plugins++;
 load_plugin_fail:
             av_freep(&plugin);
             if (err < 0)



More information about the ffmpeg-cvslog mailing list