[FFmpeg-devel] [PATCH 1/4] lavc/hevc_ps_enc: fix vps nal issues

2019-03-26 Thread Zhong Li
1. write vps_num_hrd_parameters element 2. flush left bits Signed-off-by: Zhong Li --- libavcodec/hevc_ps_enc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavcodec/hevc_ps_enc.c b/libavcodec/hevc_ps_enc.c index 4c71cf41ca..78a73a5c0a 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 3/4] lavc/qsvenc: make the queried libmfx version easily reused

2019-03-26 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 17 - libavcodec/qsvenc.h | 2 ++ 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index afeb0f7b10..7903235db9 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c

[FFmpeg-devel] [PATCH 2/4] lavc/qsvenc: fix hevc vps extradata issues

2019-03-26 Thread Zhong Li
commit). Reproduce: ffmpeg -hwaccel qsv -v verbose -c:v h264_qsv -i bbb_sunflower_1080p_30fps_normal.mp4 -vframes 1 -c:v hevc_qsv -bsf:v trace_headers -f null - Signed-off-by: Zhong Li --- libavcodec/qsvenc_hevc.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff

[FFmpeg-devel] [PATCH 4/4] lavc/qsvenc: get vps extradata from MSDK

2019-03-26 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 48 +--- libavcodec/qsvenc.h | 3 +++ libavcodec/qsvenc_hevc.c | 10 + 3 files changed, 49 insertions(+), 12 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index

[FFmpeg-devel] [PATCH] qsv: fix the dangerous macro definitions

2019-03-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsv_internal.h | 8 libavfilter/qsvvpp.h | 8 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h index 394c558883..86a5dbad98 100644 --- a/libavcodec/qsv_internal.h

[FFmpeg-devel] [PATCH v2] lavc/qsvenc: get vps extradata from MSDK

2019-03-27 Thread Zhong Li
Signed-off-by: Zhong Li --- V2: Fix the regression of qsv h264 encoding since no VPS for h264 libavcodec/qsvenc.c | 53 ++-- libavcodec/qsvenc.h | 3 +++ libavcodec/qsvenc_hevc.c | 10 +--- 3 files changed, 54 insertions(+), 12 deletions

[FFmpeg-devel] [PATCH 1/4] lavc/qsvenc: enable hevc coding options configuration

2019-03-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 2f128597db..1d9893efbf 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -625,9 +625,10 @@ static int

[FFmpeg-devel] [PATCH 3/4] lavc/qsvenc: use the common option "trellis" of AVCodecContext

2019-03-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 5 - libavcodec/qsvenc_h264.c | 2 +- libavcodec/qsvenc_hevc.c | 2 +- libavcodec/qsvenc_mpeg2.c | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 2e98de93f1

[FFmpeg-devel] [PATCH 2/4] lavc/qsvenc: enable hevc gpb option

2019-03-27 Thread Zhong Li
GPB is the default type, just contains forward references but the slice_type is B slice. Add this option to allow user to set regular P slice. Fix ticket#6870 Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ libavcodec/qsvenc.h | 4 libavcodec/qsvenc_hevc.c | 2 ++ 3

[FFmpeg-devel] [PATCH 4/4] lavc/qsvenc_h264: remove the privite option trellis

2019-03-27 Thread Zhong Li
the option name is same as AVCodecContext. Signed-off-by: Zhong Li --- libavcodec/qsvenc.h | 1 - libavcodec/qsvenc_h264.c | 6 -- 2 files changed, 7 deletions(-) diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h index 3030e4413f..6e50baa783 100644 --- a/libavcodec/qsvenc.h +

[FFmpeg-devel] [PATCH v2] configure: include pkgconfig path as vaapi header search

2019-03-28 Thread Zhong Li
Currectly just standard header path can be found, check_type/struct will fail if vaapi is installed somewhere else. Move them followed "check_pkg_config" Reviewed-by: Mark Thompson Reviewed-by: Timo Rothenpieler Signed-off-by: Zhong Li --- configure | 16 1 file

[FFmpeg-devel] [PATCH v2] qsv: fix the dangerous macro definitions

2019-03-28 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsv_internal.h | 6 +++--- libavfilter/qsvvpp.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h index 394c558883..f9bfc07c36 100644 --- a/libavcodec/qsv_internal.h +++ b

[FFmpeg-devel] [PATCH v3] qsv: fix the dangerous macro definitions

2019-03-28 Thread Zhong Li
Signed-off-by: Zhong Li Reviewed-by: Carl Eugen Hoyos --- libavcodec/qsv_internal.h | 4 ++-- libavfilter/qsvvpp.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/qsv_internal.h b/libavcodec/qsv_internal.h index 394c558883..57d861d2be 100644 --- a

[FFmpeg-devel] [PATCH v3] lavc/qsvenc: get vps extradata from MSDK

2019-03-28 Thread Zhong Li
Signed-off-by: Zhong Li Reviewed-by: Mark Thompson --- libavcodec/qsvenc.c | 66 +--- libavcodec/qsvenc.h | 3 ++ libavcodec/qsvenc_hevc.c | 10 +++--- 3 files changed, 58 insertions(+), 21 deletions(-) diff --git a/libavcodec/qsvenc.c b

[FFmpeg-devel] [PATCH] lavc/qsvenc: no need to include h264.h for jpeg encoder

2019-04-01 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc_jpeg.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c index 1e7785a826..1619a335c7 100644 --- a/libavcodec/qsvenc_jpeg.c +++ b/libavcodec/qsvenc_jpeg.c @@ -29,7 +29,6 @@ #include "avco

[FFmpeg-devel] [PATCH 1/2] lavc/qsvenc: enable hevc coding options configuration

2019-04-02 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index e76c580b4a..55f1223f02 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -629,9 +629,10 @@ static int

[FFmpeg-devel] [PATCH 2/2] lavc/qsvenc: enable hevc gpb option

2019-04-02 Thread Zhong Li
improvment. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 9 + libavcodec/qsvenc.h | 3 +++ libavcodec/qsvenc_hevc.c | 2 ++ 3 files changed, 14 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 55f1223f02..e59fd96870 100644 --- a/libavcodec/qsvenc.c +++ b

[FFmpeg-devel] [PATCH] lavc/qsvenc: enable hevc gpb option

2019-04-03 Thread Zhong Li
improvment. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 9 + libavcodec/qsvenc.h | 3 +++ libavcodec/qsvenc_hevc.c | 2 ++ 3 files changed, 14 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 55f1223f02..e59fd96870 100644 --- a/libavcodec/qsvenc.c +++ b

[FFmpeg-devel] [PATCH] lavc/qsvenc: disable CO3 for mpeg2

2019-04-28 Thread Zhong Li
Currenntly there is no any function of CO3 appled to mpeg2, and enabling for mpeg2 it will cause regression with some old libmfx libaries (see tiket #7839), so disable CO3 for mpeg2. Also add runtime version check for CO3. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 13 - 1

[FFmpeg-devel] [PATCH 1/3] lavc/qsvdec: add query function and provide error message

2019-04-30 Thread Zhong Li
It is helpful to know why some clips decoding failed. Ticket#7330 is a good example, with this patch it is easily to know bitstream codec level is out of support range. Signed-off-by: Zhong Li --- libavcodec/qsvdec.c | 33 + 1 file changed, 33 insertions(+) diff

[FFmpeg-devel] [PATCH 3/3] lavc/qsv: extactly map profile

2019-04-30 Thread Zhong Li
Currently profile mapping is hard-coded, and not flexible to do extactly map (E.g: libmfx treats H264 constrained baseline to be baseline profile). vaapi profile mapping funtion provides a better soultion than current qsv mapping. Signed-off-by: Zhong Li --- libavcodec/qsv.c | 52

[FFmpeg-devel] [PATCH 2/3] lavc/qsvdec: fix hevc level incorrectly map

2019-04-30 Thread Zhong Li
libmfx hevc level defination is same as h264, not level_idc of SPEC. Signed-off-by: Zhong Li --- libavcodec/qsv.c | 13 + libavcodec/qsv_internal.h | 1 + libavcodec/qsvdec.c | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libavcodec/qsv.c b

[FFmpeg-devel] [PATCH 1/3] lavf/qsv_vpp: add frame format option

2019-05-31 Thread Zhong Li
1. Currently output format is hard-coded as NV12, thus means CSC is always done for not NV12 input such as P010. Follow original input format as default output. 2. Add an option to specify output format. Signed-off-by: Zhong Li --- libavfilter/vf_vpp_qsv.c | 37

[FFmpeg-devel] [PATCH 2/3] lavf/qsvvpp: add P010 output format support

2019-05-31 Thread Zhong Li
Signed-off-by: Zhong Li --- libavfilter/qsvvpp.c | 1 + libavfilter/vf_vpp_qsv.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 5cd1d5d345..fc24426b75 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c @@ -153,6 +153,7

[FFmpeg-devel] [PATCH 3/3] lavf/qsv: use av_cold for init/uninit

2019-05-31 Thread Zhong Li
Signed-off-by: Zhong Li --- libavfilter/vf_deinterlace_qsv.c | 2 +- libavfilter/vf_overlay_qsv.c | 2 +- libavfilter/vf_scale_qsv.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_deinterlace_qsv.c b/libavfilter/vf_deinterlace_qsv.c index

[FFmpeg-devel] [PATCH] lavf/qsvvpp: add extra_hw_frames support

2019-06-05 Thread Zhong Li
-c:v h264_qsv \ -look_ahead 1 -look_ahead_depth 100 out1.mp4 ) Signed-off-by: Zhong Li --- libavfilter/qsvvpp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/qsvvpp.c b/libavfilter/qsvvpp.c index 62b91d6..49cb1ed 100644 --- a/libavfilter/qsvvpp.c +++ b/libavfilter/qsvvpp.c

[FFmpeg-devel] [Patch V2] lavf/qsv_scale: add scaling modes support

2019-06-18 Thread Zhong Li
null - fps=343 RENDER usage: 0.00 Low power mode (SFC) may be disabled if not supported by MSDK/Driver/HW, and replaced by AVS mode interanlly. Signed-off-by: Zhong Li --- libavfilter/vf_scale_qsv.c | 40 +++- 1 file changed, 35 insertions(+), 5 deletions

[FFmpeg-devel] [PATCH] lavc/qsvenc: fix the incorrent map from bits to bytes

2019-06-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 8dbad71..9bf8574 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -577,7 +577,7 @@ static int init_video_param

[FFmpeg-devel] [PATCH 1/2] lavc/mjpegdec: replace number with marker name

2019-06-27 Thread Zhong Li
Make it easier to read. Signed-off-by: Zhong Li --- libavcodec/mjpegdec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 20eeb96..1030861 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2115,7

[FFmpeg-devel] [PATCH 2/2] lavc/mjpegdec: make code aligned

2019-06-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/mjpegdec.c | 450 +- 1 file changed, 225 insertions(+), 225 deletions(-) diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 1030861..a65bc8d 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec

[FFmpeg-devel] [PATCH 1/3] lavc/mjpegdec: add function ff_mjpeg_decode_header

2019-06-27 Thread Zhong Li
It will be reused in the following mjpeg_parser patch Signed-off-by: Zhong Li --- Mark Thompson: This seems suspicious - MJPEG is generally 4:2:2 (e.g. UVC requires it), so I would expect a 4:2:2 format to be the default here? (Or maybe a longer list - VAAPI certainly supports 4:2:2, 4:2:0

[FFmpeg-devel] [PATCH 2/3] lavc/mjpeg_parser: use ff_mjpeg_decode_header to parse frame info

2019-06-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/mjpeg_parser.c | 158 +- 1 file changed, 157 insertions(+), 1 deletion(-) diff --git a/libavcodec/mjpeg_parser.c b/libavcodec/mjpeg_parser.c index 07a6b2b..f59aa3e 100644 --- a/libavcodec/mjpeg_parser.c +++ b

[FFmpeg-devel] [PATCH 3/3] qsvdec: add mjpeg decoding support

2019-06-27 Thread Zhong Li
Only baseline profile and NV12 output format supported right now. --- Changelog | 1 + configure | 2 ++ libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/qsv.c | 2 ++ libavcodec/qsvdec.c | 2 ++ libavcodec/qsvdec.h

[FFmpeg-devel] [Patch V2] lavc/qsvenc: fix the incorrent map from bits to bytes

2019-06-27 Thread Zhong Li
Reported-by:Maggie Sun Signed-off-by: Zhong Li --- V2: bump an new micro version since it changes the API usage. libavcodec/qsvenc.c | 2 +- libavcodec/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 8dbad71

[FFmpeg-devel] [PATCH] lavc: Add libsvt-av1 encoder wrapper

2019-07-12 Thread Zhong Li
From: Daryl Seah Signed-off-by: Daryl Seah Signed-off-by: Jing SUN Signed-off-by: ZhiZhen Tang Signed-off-by: Zhong Li --- It is part of requirement from ticket #7914. Since SVT-AV1 library is not stable, this patch is not ready to be merged but just call for comments of this wrapper and SVT

[FFmpeg-devel] [PATCH] fate: add a case for ticket #3229

2019-07-14 Thread Zhong Li
Signed-off-by: Zhong Li --- https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found by fate, so add it. Test clip produced by: ffmpeg -i tickets/3229/bad.avi -vframes 20 -c:v copy /fate-suite/mjpeg/mjpeg_field_order.avi tests/fate/video.mak| 3 +++ tests

[FFmpeg-devel] [PATCH V2] fate: add a case for ticket #3229

2019-07-29 Thread Zhong Li
Signed-off-by: Zhong Li --- https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found by fate, so add it. Test clip produced by: ffmpeg -i tickets/3229/bad.avi -vframes 6 -c:v copy /fate-suite/mjpeg/mjpeg_field_order.avi tests/fate/video.mak| 3 +++ tests

[FFmpeg-devel] [PATCH] lavf/scale_qsv: change alignment to be 16 bytes

2019-07-30 Thread Zhong Li
32 bytes alignment is not needed and increases the failure possibilty of SFC (low power scaling mode) Signed-off-by: Zhong Li --- libavfilter/vf_scale_qsv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_scale_qsv.c b/libavfilter/vf_scale_qsv.c index

[FFmpeg-devel] [PATCH 1/2] Revert "lavf/vf_vpp_qsv: add support for QSV transpose filter"

2019-08-07 Thread Zhong Li
This reverts commit af3ddd581faf2c3c4748ae589947c662b1a2271e. Revert it due to the uncorrect subject, should be: "lavf" -> "lavfi" --- libavfilter/vf_vpp_qsv.c | 101 +-- 1 file changed, 2 insertions(+), 99 deletions(-) diff --git a/libavfilter/vf_vpp_

[FFmpeg-devel] [PATCH 2/2] lavfi/vf_vpp_qsv: add support for QSV transpose filter

2019-08-07 Thread Zhong Li
w_frames=64,format=qsv,vpp_qsv=transpose=cclock_hflip' -f rawvideo -pix_fmt nv12 ./transpose.yuv Signed-off-by: Linjie Fu Signed-off-by: Zhong Li --- libavfilter/vf_vpp_qsv.c | 101 ++- 1 file changed, 99 insertions(

[FFmpeg-devel] [PATCH V3] fate: add a case for ticket #3229

2019-08-11 Thread Zhong Li
Signed-off-by: Zhong Li --- https://patchwork.ffmpeg.org/patch/13725/ introduces a regression but not found by fate, so add it. Test clip produced by: ffmpeg -i tickets/3229/bad.avi -vframes 3 -c:v copy /fate-suite/mjpeg/mjpeg_field_order.avi tests/fate/video.mak| 3 +++ tests/ref

[FFmpeg-devel] [PATCH 1/6] lavc/qsvdec: add function ff_qsv_map_picstruct()

2019-08-12 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsv.c | 18 ++ libavcodec/qsv_internal.h | 2 ++ 2 files changed, 20 insertions(+) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 986d4f6..437ef7c 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -245,6 +245,24

[FFmpeg-devel] [PATCH 2/6] lavc/qsv: make function qsv_map_fourcc() can be called externally

2019-08-12 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsv.c | 4 ++-- libavcodec/qsv_internal.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 437ef7c..533804a 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -207,7 +207,7 @@ int

[FFmpeg-devel] [PATCH 3/6] lavc/qsvdec: Replace current parser with MFXVideoDECODE_DecodeHeader()

2019-08-12 Thread Zhong Li
ltion change. It can fix some regression issues such as hevc 10bits decoding. Signed-off-by: Zhong Li Signed-off-by: Dmitry Rogozhkin --- libavcodec/qsvdec.c | 184 -- libavcodec/qsvdec.h | 2 + libavcodec/qsvdec_h2645.c | 1 + libav

[FFmpeg-devel] [PATCH 6/6] lavc/qsvdec: Add VP9 decoder support

2019-08-12 Thread Zhong Li
VP9 decoder is support on Intel kabyLake+ platforms with MSDK Version 1.19+ Signed-off-by: Zhong Li --- Changelog | 1 + configure | 1 + libavcodec/allcodecs.c| 1 + libavcodec/qsv.c | 5 + libavcodec/qsvdec_other.c | 46

[FFmpeg-devel] [PATCH 5/6] lavc/qsvdec: Add mjpeg decoder support

2019-08-12 Thread Zhong Li
Signed-off-by: Zhong Li --- Changelog | 3 +++ configure | 1 + libavcodec/Makefile | 1 + libavcodec/allcodecs.c| 1 + libavcodec/qsvdec_other.c | 28 +++- 5 files changed, 33 insertions(+), 1 deletion(-) diff --git a

[FFmpeg-devel] [PATCH 4/6] lavc/qsvdec: remove orignal parser code since not needed now

2019-08-12 Thread Zhong Li
Signed-off-by: Zhong Li --- configure | 10 +- libavcodec/qsvdec.c | 28 +--- libavcodec/qsvdec.h | 3 --- 3 files changed, 6 insertions(+), 35 deletions(-) diff --git a/configure b/configure index 3fb8f35..ddaaf80 100755 --- a/configure +++ b

[FFmpeg-devel] [PATCH] lavfi/qsvvpp: disable pass through mode if format changed

2019-08-15 Thread Zhong Li
Fix tiket#8065 Signed-off-by: Zhong Li --- libavfilter/vf_vpp_qsv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c index f18513359a..858587411d 100644 --- a/libavfilter/vf_vpp_qsv.c +++ b/libavfilter/vf_vpp_qsv.c

[FFmpeg-devel] [PATCH] lavc/qsvenc: dump BufferSizeInKB message

2018-08-27 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index c2c2911..611449c 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -160,8 +160,8 @@ static void dump_video_param

[FFmpeg-devel] [PATCH] lavu/hwcontext_qsv: Add support for AV_PIX_FMT_BGRA.

2018-09-06 Thread Zhong Li
ssion. Thanks for LinJie's discovery. Signed-off-by: Zhong Li Verified-by: Fu, Linjie --- libavfilter/qsvvpp.c | 2 +- libavutil/hwcontext_qsv.c | 44 ++-- 2 files changed, 35 insertions(+), 11 deletions(-) diff --git a/libavfilter/qsvvpp.c b/l

[FFmpeg-devel] [PATCH 1/2] lavu/qsv: fix a random hwupload failure regression

2018-09-30 Thread Zhong Li
Variable 'ret' hasn't been initialized,thus introducing a random hwupload failure regression due to qsv session uninitialized. Signed-off-by: Zhong Li --- libavutil/hwcontext_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavutil/hwcontext_qs

[FFmpeg-devel] [PATCH 2/2] lavu/qsv: make a copy as libmfx alignment requirement for uploading

2018-09-30 Thread Zhong Li
=qsv:hw -hwaccel qsv -filter_hw_device qsv -f rawvideo -pix_fmt nv12 -s:v 1920x1080 -i 1080p_nv12.yuv -vf 'format=nv12,hwupload=extra_hw_frames=16,hwdownload,format=nv12' -an -y out_nv12.yuv It can fix #7418 Signed-off-by: Zhong Li --- libavutil/hwcontext_

[FFmpeg-devel] [PATCH 1/2] lavc/qsvenc_jpeg: add async_depth support

2018-10-11 Thread Zhong Li
abviously improves qsv (m)jpeg encoding performance due to the default async_depth is changed to 4. Signed-off-by: Zhong Li --- libavcodec/qsvenc_jpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c index c18fe91..01c10125 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 2/2] lavc/qsvenc_jpeg: set a default quality

2018-10-11 Thread Zhong Li
Keep alignment with vaapi mjpeg encoder. Signed-off-by: Zhong Li --- libavcodec/qsvenc_jpeg.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c index 01c10125..1e7785a 100644 --- a/libavcodec/qsvenc_jpeg.c +++ b/libavcodec

[FFmpeg-devel] [PATCH 3/5] lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version

2018-10-25 Thread Zhong Li
It is to clean up to the code and To-Do list. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 2695d4f..ad432fc 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec

[FFmpeg-devel] [PATCH 1/5] lavc/qsvenc: add forced_idr opiton

2018-10-25 Thread Zhong Li
This option can be used to repect original input I/IDR frame type. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ libavcodec/qsvenc.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 948751d..e534dcf 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH 2/5] lavc/qsvenc: remove redundant code

2018-10-25 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index e534dcf..2695d4f 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -444,6 +444,7 @@ static int init_video_param

[FFmpeg-devel] [PATCH 5/5] lavc/qsvenc: add an option set MB numbers of each slice

2018-10-25 Thread Zhong Li
This option specifies suggested macroblocks numbers in each slice. MSDK may adjust it based on platform capability. And slice_number will be ignored if this option set to a non-zero value. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 1 + libavcodec/qsvenc.h | 1 + libavcodec

[FFmpeg-devel] [PATCH 4/5] lavc/qsvenc: add an option to set h264 pps for every frame

2018-10-25 Thread Zhong Li
RepeatPPS is enabled by default in mfx. It is not necessary mostly and wasting encoding bits. Add an option to control it and disable it by default. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 5 ++--- libavcodec/qsvenc.h | 2 ++ libavcodec/qsvenc_h264.c | 2 ++ 3 files changed

[FFmpeg-devel] [PATCH v2 0/7] qsv encoder enhancement and code refine

2018-11-05 Thread Zhong Li
Zhong Li (7): lavc/qsvenc: enable ICQ and ICQ_LA on Linux lavc/qsvenc: add forced_idr opiton lavc/qsvenc: remove redundant code lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version lavc/qsvenc: dump log for frame rate lavc/qsvenc: add an option to set h264 pps for every

[FFmpeg-devel] [PATCH v2 2/7] lavc/qsvenc: add forced_idr opiton

2018-11-05 Thread Zhong Li
This option can be used to repect original input I/IDR frame type. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ libavcodec/qsvenc.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 948751d..7098ec7 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH v2 5/7] lavc/qsvenc: dump log for frame rate

2018-11-05 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 3e7d623..7745086 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -263,6 +263,10 @@ static void dump_video_param(AVCodecContext

[FFmpeg-devel] [PATCH v2 1/7] lavc/qsvenc: enable ICQ and ICQ_LA on Linux

2018-11-05 Thread Zhong Li
ICQ/ICQ_LA are enabled with MSDK V1.28 One example of ICQ_LA: ffmpeg -hwaccel qsv -c:v h264_qsv -i in.mp4 -c:v h264_qsv -global_quality 25 -look_ahead 1 out.mp4 Signed-off-by: Zhong Li --- ICQ mode will fail with some cases: https://github.com/Intel-Media-SDK/MediaSDK/issues/863. Don't

[FFmpeg-devel] [PATCH v2 3/7] lavc/qsvenc: remove redundant code

2018-11-05 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 7098ec7..d160db3 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -444,6 +444,7 @@ static int

[FFmpeg-devel] [PATCH v2 7/7] lavc/qsvenc: add an option to set MB numbers of each slice

2018-11-05 Thread Zhong Li
This option specifies suggested macroblocks numbers in each slice. MSDK may adjust it based on platform capability. And slice_number will be ignored if this option set to a non-zero value. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 1 + libavcodec/qsvenc.h | 1 + libavcodec

[FFmpeg-devel] [PATCH v2 4/7] lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version

2018-11-05 Thread Zhong Li
It is to clean up to the code and To-Do list. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index d160db3..3e7d623 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec

[FFmpeg-devel] [PATCH v2 6/7] lavc/qsvenc: add an option to set h264 pps for every frame

2018-11-05 Thread Zhong Li
RepeatPPS is enabled by default in mfx. It is not necessary mostly and wasting encoding bits. Add an option to control it and disable it by default. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 1 + libavcodec/qsvenc.h | 2 ++ libavcodec/qsvenc_h264.c | 2 ++ libavcodec/version.h

[FFmpeg-devel] [PATCH v3] lavc/qsvenc: add forced_idr opiton

2018-11-13 Thread Zhong Li
This option can be used to repect original input I/IDR frame type. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ libavcodec/qsvenc.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 948751d..63d0939 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH v4] lavc/qsvenc: add forced_idr option

2018-11-26 Thread Zhong Li
This option can be used to repect original input I/IDR frame type. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ libavcodec/qsvenc.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 948751d..3946c1d 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH v4 0/9] qsv encoder enhancement and code refine

2018-11-29 Thread Zhong Li
v4: add QVBR mode support and BRC sliding window setting Zhong Li (9): lavc/qsvenc: enable ICQ and ICQ_LA on Linux lavc/qsvenc: add forced_idr option lavc/qsvenc: remove redundant code lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version lavc/qsvenc: dump log for frame rate

[FFmpeg-devel] [PATCH v4 1/9] lavc/qsvenc: enable ICQ and ICQ_LA on Linux

2018-11-29 Thread Zhong Li
ICQ/ICQ_LA are enabled with MSDK V1.28 Signed-off-by: Zhong Li --- libavcodec/qsvenc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h index 50cc426..055b4a6 100644 --- a/libavcodec/qsvenc.h +++ b/libavcodec/qsvenc.h @@ -53,7 +53,7

[FFmpeg-devel] [PATCH v4 2/9] lavc/qsvenc: add forced_idr option

2018-11-29 Thread Zhong Li
This option can be used to repect original input I/IDR frame type. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ libavcodec/qsvenc.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 948751d..3946c1d 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH v4 3/9] lavc/qsvenc: remove redundant code

2018-11-29 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 3946c1d..3b10980 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -444,6 +444,7 @@ static int

[FFmpeg-devel] [PATCH v4 7/9] lavc/qsvenc: add an option to set MB numbers of each slice

2018-11-29 Thread Zhong Li
This option specifies suggested macroblocks numbers in each slice. MSDK may adjust it based on platform capability. And slice_number will be ignored if this option set to a non-zero value. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 1 + libavcodec/qsvenc.h | 1 + libavcodec

[FFmpeg-devel] [PATCH v4 4/9] lavc/qsvenc: make hevc alignment same as h264 for 1.19+ version

2018-11-29 Thread Zhong Li
It is to clean up to the code and To-Do list. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 3b10980..781498c 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec

[FFmpeg-devel] [PATCH v4 6/9] lavc/qsvenc: add an option to set h264 pps for every frame

2018-11-29 Thread Zhong Li
RepeatPPS is enabled by default in mfx. It is not necessary mostly and wasting encoding bits. Add an option to control it and disable it by default. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 1 + libavcodec/qsvenc.h | 2 ++ libavcodec/qsvenc_h264.c | 2 ++ libavcodec/version.h

[FFmpeg-devel] [PATCH v4 8/9] lavc/qsvenc: enable QVBR mode

2018-11-29 Thread Zhong Li
QVBR mode is to use the variable bitrate control algorithm with constant quality. mfxExtCodingOption3 should be supported to enable QVBR mode. Example usage: ffmpeg -hwaccel qsv -c:v h264_qsv -i input.mp4 -c:v h264_qsv -global_quality 25 -maxrate 2M test_qvbr.mp4 -v verbose Signed-off-by: Zhong

[FFmpeg-devel] [PATCH v4 9/9] lavc/qsvenc: add BRC sliding window setting

2018-11-29 Thread Zhong Li
WinBRCMaxAvgKbps is to specify maximum average bitrate over a sliding window with size of WinBRCSize WinBRCMaxAvgKbps will be ignored in CBR mode and equal to TargetKbps. Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ libavcodec/qsvenc.h | 3 +++ libavcodec/qsvenc_h264

[FFmpeg-devel] [PATCH v4 5/9] lavc/qsvenc: dump log for frame rate

2018-11-29 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 4 1 file changed, 4 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 781498c..91b8905 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -263,6 +263,10 @@ static void dump_video_param(AVCodecContext

[FFmpeg-devel] [PATCH] lavc/qsvenc: set pict_type to be I for IDR frames.

2018-12-07 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index aa7f347..8289a32 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -1378,10 +1378,11 @@ int ff_qsv_encode

[FFmpeg-devel] [PATCH] lavc/qsv_hevc: correct QSV HEVC default plugin on Windows

2018-12-11 Thread Zhong Li
henko Signed-off-by: Landgraph Signed-off-by: Zhong Li --- libavcodec/qsvdec_h2645.c | 8 +--- libavcodec/qsvenc_hevc.c | 8 +--- libavcodec/version.h | 2 +- 3 files changed, 3 insertions(+), 15 deletions(-) diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c index b8a

[FFmpeg-devel] [PATCH v2] lavc/qsvenc: set pict_type to be I for IDR frames.

2018-12-11 Thread Zhong Li
Signed-off-by: Zhong Li --- libavcodec/qsvenc.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 931e994..96cf642 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -1377,11 +1377,10 @@ int ff_qsv_encode

Re: [FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop while framerate lower than input

2020-02-28 Thread Zhong Li
Linjie Fu 于2020年2月28日周五 下午11:34写道: > > There are frame droppings in frc while converting into a lower framerate, > and MSDK returns ERROR_MORE_DATA which should be ignored. Should be fixed in MSDK instead of working around in FFmpeg? ___ ffmpeg-devel ma

Re: [FFmpeg-devel] [PATCH] lavc/qsvenc_hevc: add qmax/qmin support for HEVC encoding

2020-03-11 Thread Zhong Li
Linjie Fu 于2020年3月11日周三 下午6:44写道: > > Add qmax/qmin support for HEVC software bitrate control(SWBRC). > > Limitations: > - RateControlMethod != MFX_RATECONTROL_CQP > - with EXTBRC ON > > Signed-off-by: Dmitry Rogozhkin > Signed-off-by: Linjie Fu > --- > > Relative code in MSDK for the li

Re: [FFmpeg-devel] [PATCH, v2 1/2] lavc/qsvdec: add decode support for HEVC 4:2:2 8-bit and 10-bit

2020-04-14 Thread Zhong Li
Linjie Fu 于2020年2月26日周三 下午4:43写道: > > Enables HEVC Range Extension decoding support (Linux) for 4:2:2 8/10 bit > on ICL+ (gen11 +) platform. > > Signed-off-by: Linjie Fu > --- > [v2]: restrict to support on Linux. > > libavcodec/qsv.c | 16 > libavutil/hwcontext_qsv.c |

Re: [FFmpeg-devel] [PATCH 3/8] lavc/qsvenc: Add hardware config metadata

2020-04-19 Thread Zhong Li
Mark Thompson 于2020年4月13日周一 下午11:34写道: > > All of these encoders can accept libmfx surfaces directly in a hardware > frames context, or they can accept software frames if a suitable device > is supplied to use. > --- > libavcodec/qsvenc.c | 7 +++ > libavcodec/qsvenc.h | 3 +++ >

Re: [FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop while framerate lower than input

2020-04-19 Thread Zhong Li
Fu, Linjie 于2020年2月29日周六 下午5:35写道: > > > -Original Message- > > From: Zhong Li > > Sent: Saturday, February 29, 2020 13:14 > > To: FFmpeg development discussions and patches > de...@ffmpeg.org> > > Cc: Fu, Linjie > > Subject: Re: [FF

Re: [FFmpeg-devel] [PATCH] lavfi/vf_vpp_qsv: fix the infinite loop while framerate lower than input

2020-04-21 Thread Zhong Li
> > I can't see the benefit to use MSDK framerate conversion function. Is > > it a good idea to drop it and use ffmpeg native fps filter instead? > > The implementation of FRC inside MSDK is quite straight-forward or simple > currently since it just drops or repeats frames, hence I think using nati

[FFmpeg-devel] [PATCH] lavfi/cas: fix the wrong source linesize

2021-04-11 Thread Zhong Li
Signed-off-by: Zhong Li --- libavfilter/vf_cas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_cas.c b/libavfilter/vf_cas.c index 7c32ed5f9b..b44a100421 100644 --- a/libavfilter/vf_cas.c +++ b/libavfilter/vf_cas.c @@ -65,7 +65,7 @@ static int cas_slice8

Re: [FFmpeg-devel] [PATCH v3] lavfi/qsvvpp: support async depth

2021-04-11 Thread Zhong Li
Fei Wang 于2021年3月31日周三 上午10:11写道: > > Async depth will allow qsv filter cache few frames, and avoid force > switch and end filter task frame by frame. This change will improve > performance for some multi-task case, for example 1:N transcode( > decode + vpp + encode) with all QSV plugins. > > Perf

Re: [FFmpeg-devel] [PATCH v5 1/9] fftools/qsv: add device initialization from string

2020-05-19 Thread Zhong Li
于2020年5月19日周二 上午3:26写道: > > From: Artem Galin > > Signed-off-by: Artem Galin > --- > fftools/ffmpeg_opt.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c > index 60bb437ea7..83f1b53e9d 100644 > --- a/fftools/ffmpeg_opt.c

Re: [FFmpeg-devel] [PATCH v6 2/9] libavcodec/qsv: enabling d3d11va support, added mfxhdlpair

2020-05-19 Thread Zhong Li
于2020年5月19日周二 上午4:31写道: > > From: Artem Galin > > Adding DX11 relevant device type checks and adjusting callbacks with > proper MediaSDK pair type support. > > Extending structure for proper MediaSDK pair type support. > > Signed-off-by: Artem Galin > --- > libavcodec/qsv.c | 53 ++

Re: [FFmpeg-devel] [PATCH v5 3/9] libavutil/hwcontext_d3d11va: adding the vendor option to d3d11va device creation

2020-05-19 Thread Zhong Li
于2020年5月19日周二 上午2:56写道: > > From: Artem Galin > > Example: --init_hw_device d3d11va:,vendor=0x8086 > > qsv_device option is still works and has higher priority over vendor > option. Would be nice if you can document it in ffmpeg.texi. > Signed-off-by: Artem Galin --- > libavutil/hwcontext_d3d

Re: [FFmpeg-devel] [RFC]separation of multiple outputs' encoding

2020-05-19 Thread Zhong Li
Tomas Härdin 于2020年5月19日周二 下午10:25写道: > > fre 2020-05-15 klockan 10:14 +0800 skrev Tao Zhang: > > Marton Balint 于2020年5月15日周五 上午2:33写道: > > > > > > > > > On Thu, 14 May 2020, Tao Zhang wrote: > > > > > > > Hi, > > > > FFmpeg supports multiple outputs created out of the same input in the > > > > s

Re: [FFmpeg-devel] [PATCH] avfilter/qsvvpp: Work around a bug in MSDK where VPP processing hangs under certain conditions

2020-05-24 Thread Zhong Li
Soft Works 于2020年5月24日周日 下午8:13写道: > > These conditions are: > - Dimensions are aligned to 16/32 byte (e.g. 1920x800) > - No scaling is done > - Color format conversion (e.g. 10bit to 8bit) > > Example command: > ffmpeg -c:v hevc_qsv -hwaccel qsv -i hevc_10bit_1920_800.mkv -filter_complex > "scal

[FFmpeg-devel] [PATCH] mailmap: add entry for myself

2020-06-17 Thread Zhong Li
Signed-off-by: Zhong Li --- .mailmap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.mailmap b/.mailmap index d1925bfab0..f14770d800 100644 --- a/.mailmap +++ b/.mailmap @@ -15,7 +15,8 @@ - + + rcombs -- 2.17.1

[FFmpeg-devel] [PATCH 2/2] lavu/qsv: remove the redundant libmfx init code

2019-09-04 Thread Zhong Li
Signed-off-by: Zhong Li --- libavutil/hwcontext_qsv.c | 21 - 1 file changed, 21 deletions(-) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 0329a81..802c842 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c @@ -1145,27 +1145,6

[FFmpeg-devel] [PATCH 1/2] lavc/qsv: Fix MSDK initialization failure in system memory mode

2019-09-04 Thread Zhong Li
MSDK does not create internal acceleration device on Linux, So MFXVideoCORE_SetHandle() is necessary. It has been added for ff_qsv_init_session_device(). But missed for ff_qsv_init_internal_session() due to commit 1f26a23 overwrited commit db89f45 Fix #7030 Signed-off-by: Zhong Li

[FFmpeg-devel] [PATCH V2] lavu/qsv: remove the redundant libmfx init code

2019-09-04 Thread Zhong Li
Signed-off-by: Zhong Li --- libavutil/hwcontext_qsv.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/libavutil/hwcontext_qsv.c b/libavutil/hwcontext_qsv.c index 0329a81..1c0e4ff 100644 --- a/libavutil/hwcontext_qsv.c +++ b/libavutil/hwcontext_qsv.c

[FFmpeg-devel] [PATCH] libavfilter/vaapi_transpose: Fix potential memory leak

2019-09-04 Thread Zhong Li
Fix CID: 1452760 Signed-off-by: Zhong Li --- libavfilter/vf_transpose_vaapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_transpose_vaapi.c b/libavfilter/vf_transpose_vaapi.c index 69dbdd7..a4c6542 100644 --- a/libavfilter/vf_transpose_vaapi.c +++ b

  1   2   3   >