Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2016-08-11 10:34:01 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-08-16 18:09:33 +0300
commit46bfc1562f187e3c04ea1b9baa1a1d0580530485 (patch)
treea1335567c969403e09f9fe7f56b472ab33bf2271 /ffmpeg_qsv.c
parenta2c40931c80d8a6081b17df5968715d41b10b057 (diff)
ffmpeg/qsv: fix QSV-accelerated transcode performance drop issue.
the merge commit 1b04ea1 "avconv: create simple filtergraphs earlier" will init the filtergraphs earlier, then init the QSV transcode can't suppose the nb_filters's value, else lead to the QSV transcode performance drop. Signed-off-by: Jun Zhao <mypopydev@gmail.com> Reviewed-by: Ivan Uskov <ivan.uskov@nablet.com Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'ffmpeg_qsv.c')
-rw-r--r--ffmpeg_qsv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ffmpeg_qsv.c b/ffmpeg_qsv.c
index 95a2351602..acc54dd27a 100644
--- a/ffmpeg_qsv.c
+++ b/ffmpeg_qsv.c
@@ -210,8 +210,7 @@ int qsv_transcode_init(OutputStream *ost)
/* check if the decoder supports QSV and the output only goes to this stream */
ist = input_streams[ost->source_index];
- if (ist->nb_filters || ist->hwaccel_id != HWACCEL_QSV ||
- !ist->dec || !ist->dec->pix_fmts)
+ if (ist->hwaccel_id != HWACCEL_QSV || !ist->dec || !ist->dec->pix_fmts)
return 0;
for (pix_fmt = ist->dec->pix_fmts; *pix_fmt != AV_PIX_FMT_NONE; pix_fmt++)
if (*pix_fmt == AV_PIX_FMT_QSV)