[FFmpeg-devel] [PATCH V1 1/2] lavf/rtmpproto: Don't unref uninitialized buffers

2019-12-03 Thread Jun Zhao
From: Jun Zhao This happens if ffurl_open_whitelist fails and stream is unset. Signed-off-by: Jun Zhao --- libavformat/rtmpproto.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 5274993..42aacbd 100644

[FFmpeg-devel] [PATCH V3 2/2] lavf/libsrt: enable other encryption parameters

2019-12-03 Thread Jun Zhao
From: Jun Zhao Enable the SRTO_ENFORCEDENCRYPTION/SRTO_KMREFRESHRATE/ SRTO_KMPREANNOUNCE for srt encryption control. Signed-off-by: Jun Zhao --- doc/protocols.texi | 16 libavformat/libsrt.c | 18 ++ 2 files changed, 34 insertions(+), 0 deletions

[FFmpeg-devel] [PATCH V1 2/2] lavfi/avf_showspectrum: Fix the memory leak in error handle path

2019-12-03 Thread Jun Zhao
From: Jun Zhao Fix the memory leak in error handle path. Signed-off-by: Jun Zhao --- libavfilter/avf_showspectrum.c |5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index d5785af..3a3ef7e 100644

[FFmpeg-devel] [PATCH V3 1/2] lavf/libsrt: add linger parameter to libsrt

2019-12-03 Thread Jun Zhao
From: Jun Zhao add linger parameter to libsrt, it's setting the number of seconds that the socket waits for unsent data when closing. Reviewed-by: Andriy Gelman Signed-off-by: Jun Zhao --- doc/protocols.texi |5 + libavformat/libsrt.c | 13 + 2 files changed, 18

[FFmpeg-devel] [PATCH V3 0/2] Enable other srt options.

2019-12-03 Thread Jun Zhao
V3: - add more details for linger options. tks Andriy Gelman's comments - fix minor typo in commit message. V2: - correct the commit message. Jun Zhao (2): lavf/libsrt: add linger parameter to libsrt lavf/libsrt: enable other encryption parameters doc/protocols.texi | 21

[FFmpeg-devel] [PATCH 2/2] lavf/srt: enable other encryption parameters

2019-12-01 Thread Jun Zhao
From: Jun Zhao Enable the SRTO_ENFORCEDENCRYPTION/SRTO_KMREFRESHRATE/ SRTO_KMPREANNOUNCE for srt encryption control. Signed-off-by: Jun Zhao --- doc/protocols.texi | 16 libavformat/libsrt.c | 18 ++ 2 files changed, 34 insertions(+), 0 deletions

[FFmpeg-devel] [PATCH V2 2/2] lavf/srt: enable other encryption parameters

2019-12-01 Thread Jun Zhao
From: Jun Zhao Enable the SRTO_ENFORCEDENCRYPTION/SRTO_KMREFRESHRATE/ SRTO_KMPREANNOUNCE for srt encryption control. Signed-off-by: Jun Zhao --- doc/protocols.texi | 16 libavformat/libsrt.c | 18 ++ 2 files changed, 34 insertions(+), 0 deletions

[FFmpeg-devel] [PATCH V2 1/2] lavf/libsrt: add linger parameter to libsrt

2019-12-01 Thread Jun Zhao
From: Jun Zhao add linger parameter to libsrt, it's setting he number of seconds that the socket waits for unsent data when closing. Signed-off-by: Jun Zhao --- doc/protocols.texi |4 libavformat/libsrt.c | 13 + 2 files changed, 17 insertions(+), 0 deletions(-) diff

[FFmpeg-devel] [PATCH V2 0/2] Enable other srt options.

2019-12-01 Thread Jun Zhao
V2: - correct the commit message. Jun Zhao (2): lavf/libsrt: add linger parameter to libsrt lavf/srt: enable other encryption parameters doc/protocols.texi | 20 libavformat/libsrt.c | 31 +++ 2 files changed, 51 insertions(+), 0

[FFmpeg-devel] [PATCH 1/2] lavf/libsrt: add linger parameter to libsrt

2019-12-01 Thread Jun Zhao
From: Jun Zhao add pkt_size parameter to libsrt, it's setting he number of seconds that the socket waits for unsent data when closing. Signed-off-by: Jun Zhao --- doc/protocols.texi |4 libavformat/libsrt.c | 13 + 2 files changed, 17 insertions(+), 0 deletions

[FFmpeg-devel] [PATCH 3/3] lavc/mvha: Check init_get_bits8() for failure

2019-11-28 Thread Jun Zhao
From: Jun Zhao fix potential null pointer dereference Signed-off-by: Jun Zhao --- libavcodec/mvha.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavcodec/mvha.c b/libavcodec/mvha.c index 636b5e6..4b03a79 100644 --- a/libavcodec/mvha.c +++ b/libavcodec/mvha.c

[FFmpeg-devel] [PATCH 1/3] lavf/vividas: check avformat_new_stream() return

2019-11-28 Thread Jun Zhao
From: Jun Zhao check avformat_new_stream() return. Signed-off-by: Jun Zhao --- libavformat/vividas.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libavformat/vividas.c b/libavformat/vividas.c index f20af3d..16642c0 100644 --- a/libavformat/vividas.c +++ b

[FFmpeg-devel] [PATCH 2/3] lavf/vividas: free the PB when get EOF

2019-11-28 Thread Jun Zhao
From: Jun Zhao free the PB when get EOF. Signed-off-by: Jun Zhao --- libavformat/vividas.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavformat/vividas.c b/libavformat/vividas.c index 16642c0..f354d7d 100644 --- a/libavformat/vividas.c +++ b/libavformat

[FFmpeg-devel] [PATCH] lavc/libx264: enable the PC(2^n -1) colorspace in libx264rgb

2019-11-27 Thread Jun Zhao
From: Jun Zhao enable the PC(2^n -1) colorspace in libx264rgb fix #8404 Signed-off-by: Jun Zhao --- libavcodec/libx264.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index bfd91bb..60607ca 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH] lavc/libx264: enable the PC(2^n -1) colorspace in libx264rgb

2019-11-27 Thread Jun Zhao
From: Jun Zhao enable the PC(2^n -1) colorspace in libx264rgb fix #8404 Signed-off-by: Jun Zhao --- libavcodec/libx264.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index bfd91bb..60607ca 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH V3] lavfi/stackblur: add stackblur filter

2019-11-25 Thread Jun Zhao
From: Jun Zhao add stackblur filter Signed-off-by: Jun Zhao --- doc/filters.texi | 22 + libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/vf_stackblur.c | 1040 4 files changed, 1064 insertions(+), 0

[FFmpeg-devel] [PATCH V3] add stackblur

2019-11-25 Thread Jun Zhao
V3: - Add RGB24/RGBA/YUV support - Use the LUT - ToDo: enable slice threading support Jun Zhao (1): lavfi/stackblur: add stackblur filter doc/filters.texi | 22 + libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/vf_stackblur.c | 1040

[FFmpeg-devel] [PATCH] lavf/rtmpproto: fix the playpath truncation if the len > 512

2019-11-15 Thread Jun Zhao
From: Jun Zhao fix the playpath truncation if the len > 512 Found-by: liuwenhuang Signed-off-by: Jun Zhao --- libavformat/rtmpproto.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 42c6b94..5274

[FFmpeg-devel] [PATCH 1/2] lavfi/superfastblur: add superfastblur filter

2019-11-13 Thread Jun Zhao
From: Jun Zhao add superfastblur filter Signed-off-by: Jun Zhao --- doc/filters.texi | 15 +++ libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/vf_superfastblur.c | 274 4 files changed, 291

[FFmpeg-devel] [PATCH 2/2] lavfi/stackblur: add stackblur filter

2019-11-13 Thread Jun Zhao
From: Jun Zhao add stackblur filter Signed-off-by: Jun Zhao --- doc/filters.texi | 22 +++ libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/vf_stackblur.c | 362 4 files changed, 386 insertions

[FFmpeg-devel] [PATCH 0/2] add superfastblur/stackblur

2019-11-13 Thread Jun Zhao
V1: - fix R/B swap issue in superfastblur, tks Zhao Zhili - add stackblur, it is a compromise between Gaussian Blur and Box blur Jun Zhao (2): lavfi/superfastblur: add superfastblur filter lavfi/stackblur: add stackblur filter doc/filters.texi | 37 libavfilter

[FFmpeg-devel] [PATCH V1] lavfi/superfastblur: add superfastblur filter

2019-11-12 Thread Jun Zhao
From: Jun Zhao add superfastblur filter Signed-off-by: Jun Zhao --- doc/filters.texi | 15 ++ libavfilter/Makefile |1 + libavfilter/allfilters.c |1 + libavfilter/vf_superfastblur.c | 275 4 files changed, 292

[FFmpeg-devel] [PATCH V1 5/5] lavf/dashend: enable probesize/max_analyze_duration setting in sub-demuxer

2019-11-02 Thread Jun Zhao
From: Jun Zhao Enable probesize/max_analyze_duration setting when open the sub-demuxer, it's will be used to minimizing the initial delay. Signed-off-by: Jun Zhao --- libavformat/dashdec.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/dashdec.c b

[FFmpeg-devel] [PATCH V1 3/5] lavf/hls: support probesize/max_analyze_duration when open sub-demuxer

2019-11-02 Thread Jun Zhao
From: Jun Zhao Add probesize/max_analyze_duration support when open the sub-demuxer, it's will be used to minimizing the initial delay. Signed-off-by: Jun Zhao --- libavformat/hls.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c

[FFmpeg-devel] [PATCH V1 4/5] lavf/flvenc: Cosmetics: fix indentation

2019-11-02 Thread Jun Zhao
From: Jun Zhao fix indentation Signed-off-by: Jun Zhao --- libavformat/flvenc.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index fb1dede..9d13275 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c

[FFmpeg-devel] [PATCH V1 2/5] lavf/mov: add log context dump in log message

2019-11-02 Thread Jun Zhao
From: Jun Zhao add log context dump in log message. Signed-off-by: Jun Zhao --- libavformat/mov.c | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/libavformat/mov.c b/libavformat/mov.c index 4f69664..d5c67fb 100644 --- a/libavformat/mov.c

[FFmpeg-devel] [PATCH V1 1/5] lavf/hls: fix the log context setting in log message

2019-11-02 Thread Jun Zhao
From: Jun Zhao Fix the log context setting in log message Signed-off-by: Jun Zhao --- libavformat/hls.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index ac151d5..8ce1ad9 100644 --- a/libavformat/hls.c +++ b

[FFmpeg-devel] [PATCH V1] lavfi/bilateral: Clean the option description and unused code

2019-10-23 Thread Jun Zhao
From: Jun Zhao Clean the option description and unused code. Signed-off-by: Jun Zhao --- libavfilter/vf_bilateral.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/libavfilter/vf_bilateral.c b/libavfilter/vf_bilateral.c index 31578a0..3c9d800 100644

[FFmpeg-devel] [PATCH V1 3/3] lavf/hlsenc: fix memory leak

2019-10-11 Thread Jun Zhao
From: Jun Zhao fix memory leak Signed-off-by: Jun Zhao --- libavformat/hlsenc.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index cd43201..5a27b0f 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -585,6

[FFmpeg-devel] [PATCH V1 1/3] lavfi/avf_showspectrum: add error handle if av_asprintf return null

2019-10-11 Thread Jun Zhao
From: Jun Zhao add error handle if av_asprintf return null. Signed-off-by: Jun Zhao --- libavfilter/avf_showspectrum.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/libavfilter/avf_showspectrum.c b/libavfilter/avf_showspectrum.c index f175bf1..d5785af

[FFmpeg-devel] [PATCH V1 2/3] fftools/ffmpeg_opt: add error handle if av_asprintf return null

2019-10-11 Thread Jun Zhao
From: Jun Zhao add error handle if av_asprintf return null. Signed-off-by: Jun Zhao --- fftools/ffmpeg_opt.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c index fa22eb3..af9a9a6 100644 --- a/fftools/ffmpeg_opt.c +++ b

[FFmpeg-devel] [PATCH V1 3/4] lavfi/remap: remove unnecessary cast for void *

2019-10-09 Thread Jun Zhao
From: Jun Zhao Remove unnecessary cast for void * pointer. Signed-off-by: Jun Zhao --- libavfilter/vf_remap.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_remap.c b/libavfilter/vf_remap.c index b1c3e43..720020c 100644 --- a/libavfilter/vf_remap.c

[FFmpeg-devel] [PATCH V1 4/4] lavfi/v360: remove unnecessary cast for void *

2019-10-09 Thread Jun Zhao
From: Jun Zhao Remove unnecessary cast for void * pointer. Signed-off-by: Jun Zhao --- libavfilter/vf_v360.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_v360.c b/libavfilter/vf_v360.c index a28a03d..a0f3c52 100644 --- a/libavfilter/vf_v360.c +++ b

[FFmpeg-devel] [PATCH V1 2/4] lavfi/lenscorrection: remove unnecessary cast for void *

2019-10-09 Thread Jun Zhao
From: Jun Zhao Remove unnecessary cast for void * pointer. Signed-off-by: Jun Zhao --- libavfilter/vf_lenscorrection.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/vf_lenscorrection.c b/libavfilter/vf_lenscorrection.c index 239fe19..b5400a2 100644

[FFmpeg-devel] [PATCH V1 1/4] lavfi/colorspace: typedef ThreadData as all other filters

2019-10-09 Thread Jun Zhao
From: Jun Zhao typedef ThreadData as all other filters. Signed-off-by: Jun Zhao --- libavfilter/vf_colorspace.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_colorspace.c b/libavfilter/vf_colorspace.c index 04954c1..db41f64 100644

[FFmpeg-devel] [PATCH V3] lavfi/hqdn3d: add slice thread optimization

2019-10-09 Thread Jun Zhao
From: Jun Zhao Enabled one thread per planar, used the test command for 1080P video (YUV420P format) as follow: ffmpeg -i 1080p.mp4 -an -vf hqdn3d -f null /dev/nul This optimization improved the performance about 30% in 1080P YUV420P case (from 110fps to 143fps), also pass the framemd5 check

[FFmpeg-devel] [PATCH V2] lavfi/hqdn3d: add slice thread optimization

2019-10-08 Thread Jun Zhao
From: Jun Zhao Enabled one thread per planar, used the test command for 1080P video (YUV420P format) as follow: ffmpeg -i 1080p.mp4 -an -vf hqdn3d -f null /dev/nul This optimization improved the performance about 30% in 1080P YUV420P case (from 110fps to 143fps), also pass the framemd5 check

[FFmpeg-devel] [PATCH V1 3/3] doc/codecs: Update documentation for flags/flags2

2019-10-04 Thread Jun Zhao
From: Jun Zhao Update documentation for flags/flags2 Signed-off-by: Jun Zhao --- doc/codecs.texi | 11 --- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/doc/codecs.texi b/doc/codecs.texi index 0d0de94..15e55cc 100644 --- a/doc/codecs.texi +++ b/doc/codecs.texi

[FFmpeg-devel] [PATCH V1 1/3] avcodec/decode: fix identation

2019-10-04 Thread Jun Zhao
From: Jun Zhao fix identation. Signed-off-by: Jun Zhao --- libavcodec/decode.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 0818475..a7b37c6 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -785,7 +785,7

[FFmpeg-devel] [PATCH V1 2/3] lavc/options_table: Correct the flags for AVCodecContext.flags2

2019-10-04 Thread Jun Zhao
From: Jun Zhao Correct the flags for AVCodecContext.flags2. Signed-off-by: Jun Zhao --- libavcodec/options_table.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h index b56e653..4b9f3ff 100644 --- a/libavcodec

[FFmpeg-devel] [PATCH V1 2/2] lavfi/hqdn3d: add slice thread optionmation

2019-10-02 Thread Jun Zhao
From: Jun Zhao Enabled one thread per planar, used the test command for 1080P video (YUV420P format) as follow: ffmpeg -i 1080p.mp4 -an -vf hqdn3d -f null /dev/nul This optimization improved the performance about 30% in 1080P YUV420P case (from 110fps to 143fps), also pass the framemd5 check

[FFmpeg-devel] [PATCH V1 1/2] avutil/common: Fix underflow for ROUNDED_DIV with unsigned integer

2019-10-02 Thread Jun Zhao
From: Mengye Lv When used ROUNDED_DIV(a,b), if a is unsigned integer zero, it's will lead to an underflow issue(it called unsigned integer wrapping). Fixes #8062 Signed-off-by: Mengye Lv Signed-off-by: Jun Zhao --- libavutil/common.h |2 +- 1 files changed, 1 insertions(+), 1 deletions

[FFmpeg-devel] [PATCH V2 4/5] lavf/utils: Cosmetics: fix indentation for estimate_timings

2019-09-29 Thread Jun Zhao
From: Jun Zhao fix indentation for estimate_timings when dump start_time/duartion. Signed-off-by: Jun Zhao --- libavformat/utils.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 9d69e3a..112d19b 100644

[FFmpeg-devel] [PATCH V2 1/5] lavf/utils: change the log level to warning if can't get duration

2019-09-29 Thread Jun Zhao
From: Jun Zhao change the log level to warning if can't get duration, it's will help to debug some duration issue Signed-off-by: vacingfang Signed-off-by: Jun Zhao --- libavformat/utils.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/utils.c b

[FFmpeg-devel] [PATCH V2 3/5] lavf/utils: correct the duration estimation method for nut demuxer

2019-09-29 Thread Jun Zhao
From: Jun Zhao in fact, nut demuxer use the PTS for duration estimation. Signed-off-by: Jun Zhao --- libavformat/utils.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 07f02a7..9d69e3a 100644 --- a/libavformat

[FFmpeg-devel] [PATCH V2 0/5] add some information for duration issue debug

2019-09-29 Thread Jun Zhao
V2: - split the duration estimate as function, only update the patch 5/5 the other patches 1-4 same as the V1. Jun Zhao (5): lavf/utils: change the log level to warning if can't get duration lavf/nutdec: add logging context to log lavf/utils: correct the duration estimation method

[FFmpeg-devel] [PATCH V2 2/5] lavf/nutdec: add logging context to log

2019-09-29 Thread Jun Zhao
From: Jun Zhao Add logging context to log, it's will help debuging. Signed-off-by: Jun Zhao --- libavformat/nutdec.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 979cb9a..2b5adcb 100644 --- a/libavformat

[FFmpeg-devel] [PATCH V2 5/5] lavf/utils: support duration estimate method dump

2019-09-29 Thread Jun Zhao
From: Jun Zhao add new function duration_estimate_name to dump duration estimate method, it's will help to debug some duration issue. Signed-off-by: Jun Zhao --- libavformat/utils.c | 15 ++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b

[FFmpeg-devel] [PATCH V1 5/5] lavf/utils: add duration estimate method trace

2019-09-28 Thread Jun Zhao
From: Jun Zhao add duration estimate method trace, it's can help to some duration issue trace or debug. Signed-off-by: Jun Zhao --- libavformat/utils.c | 16 +++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index

[FFmpeg-devel] [PATCH V1 3/5] lavf/utils: correct the duration estimation method for nut demuxer

2019-09-28 Thread Jun Zhao
From: Jun Zhao in fact, nut demuxer use the PTS for duration estimation. Signed-off-by: Jun Zhao --- libavformat/utils.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 45cd6b8..f62a5cb 100644 --- a/libavformat

[FFmpeg-devel] [PATCH V1 1/5] lavf/utils: change the log level to warning if can't get duration

2019-09-28 Thread Jun Zhao
From: Jun Zhao change the log level to warning if can't get duration, it's will help to debug some duration issue Signed-off-by: vacingfang Signed-off-by: Jun Zhao --- libavformat/utils.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libavformat/utils.c b

[FFmpeg-devel] [PATCH V1 4/5] lavf/utils: Cosmetics: fix indentation for estimate_timings

2019-09-28 Thread Jun Zhao
From: Jun Zhao fix indentation for estimate_timings when dump start_time/duartion. Signed-off-by: Jun Zhao --- libavformat/utils.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index f62a5cb..c0ccd8c 100644

[FFmpeg-devel] [PATCH V1 2/5] lavf/nutdec: add logging context to log

2019-09-28 Thread Jun Zhao
From: Jun Zhao Add logging context to log, it's will help debuging. Signed-off-by: Jun Zhao --- libavformat/nutdec.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c index 979cb9a..2b5adcb 100644 --- a/libavformat

[FFmpeg-devel] [PATCH V2] lavf/4xm: fix memory leak in error handing path

2019-09-23 Thread Jun Zhao
From: Jun Zhao need to free the header in error path. Signed-off-by: Jun Zhao --- libavformat/4xm.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/libavformat/4xm.c b/libavformat/4xm.c index a984fc9..a6101a9 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c

[FFmpeg-devel] [PATCH V1] lavf/dashdec: drop unnecessary check before ff_format_io_close

2019-09-23 Thread Jun Zhao
From: Jun Zhao ff_format_io_close will check the AVIOContext pointer pb, so drop the unnecessary check before ff_format_io_close. Signed-off-by: Jun Zhao --- libavformat/dashdec.c | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/libavformat/dashdec.c b

[FFmpeg-devel] [PATCH V1] lavc/mpeg4audio: add chan_config check to avoid indeterminate channels

2019-09-21 Thread Jun Zhao
From: Jun Zhao add chan_config check to avoid indeterminate channels. Signed-off-by: Jun Zhao --- libavcodec/mpeg4audio.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libavcodec/mpeg4audio.c b/libavcodec/mpeg4audio.c index 2197147..0ada239 100644

[FFmpeg-devel] [PATCH V1 1/6] lavf/4xm: fix memory leak in error handing path

2019-09-20 Thread Jun Zhao
From: Jun Zhao need to free the header in error path Signed-off-by: Jun Zhao --- libavformat/4xm.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/4xm.c b/libavformat/4xm.c index a984fc9..8054980 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c

[FFmpeg-devel] [PATCH V1 3/6] lavc/mpegaudiodec_template: use initialized var for avpriv_mpeg4audio_get_config

2019-09-20 Thread Jun Zhao
From: Jun Zhao avpriv_mpeg4audio_get_config will use MPEG4AudioConfig.chan_config to get the MPEG4AudioConfig.channels, but if we use a uninitialized variable, we will get an indeterminate channels, add an explicit initialization for this case. Signed-off-by: Jun Zhao --- libavcodec

[FFmpeg-devel] [PATCH V1 5/6] lavf/latmenc: use initialized var for avpriv_mpeg4audio_get_config

2019-09-20 Thread Jun Zhao
From: Jun Zhao avpriv_mpeg4audio_get_config will use MPEG4AudioConfig.chan_config to get the MPEG4AudioConfig.channels, but if we use a uninitialized variable, we will get an indeterminate channels, add an explicit initialization for this case. Signed-off-by: Jun Zhao --- libavformat

[FFmpeg-devel] [PATCH V1 2/6] lavc/aac_adtstoasc: use initialized var for avpriv_mpeg4audio_get_config

2019-09-20 Thread Jun Zhao
From: Jun Zhao avpriv_mpeg4audio_get_config will use MPEG4AudioConfig.chan_config to get the MPEG4AudioConfig.channels, but if we use a uninitialized variable, we will get an indeterminate channels, add an explicit initialization for this case. Signed-off-by: Jun Zhao --- libavcodec

[FFmpeg-devel] [PATCH V1 4/6] lavf/adtsenc: use initialized var for avpriv_mpeg4audio_get_config

2019-09-20 Thread Jun Zhao
From: Jun Zhao avpriv_mpeg4audio_get_config will use MPEG4AudioConfig.chan_config to get the MPEG4AudioConfig.channels, but if we use a uninitialized variable, we will get an indeterminate channels, add an explicit initialization for this case. Signed-off-by: Jun Zhao --- libavformat

[FFmpeg-devel] [PATCH V1 6/6] lavf/matroskaenc: use initialized var for avpriv_mpeg4audio_get_config

2019-09-20 Thread Jun Zhao
From: Jun Zhao avpriv_mpeg4audio_get_config will use MPEG4AudioConfig.chan_config to get the MPEG4AudioConfig.channels, but if we use a uninitialized variable, we will get an indeterminate channels, add an explicit initialization for this case. Signed-off-by: Jun Zhao --- libavformat

[FFmpeg-devel] [PATCH V1 1/4] lavf/hls: refine the log message

2019-09-13 Thread Jun Zhao
From: Jun Zhao refine the log message, it's will help the debugging Signed-off-by: Jun Zhao --- libavformat/hls.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 61b6759..10fc568 100644 --- a/libavformat/hls.c +++ b

[FFmpeg-devel] [PATCH V1 4/4] lavf/hls: fix memory leak in error handling path for option tmp

2019-09-13 Thread Jun Zhao
From: Jun Zhao fix memory leak in error handling path for option tmp. Signed-off-by: Jun Zhao --- libavformat/hls.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index bb07dcb..0611ddc 100644 --- a/libavformat/hls.c +++ b

[FFmpeg-devel] [PATCH V1 2/4] lavf/hls: drop unnecessary check before ff_format_io_close

2019-09-13 Thread Jun Zhao
From: Jun Zhao ff_format_io_close will check the AVIOContext pointer pb, so drop the unnecessary check before ff_format_io_close. Signed-off-by: Jun Zhao --- libavformat/hls.c | 18 ++ 1 files changed, 6 insertions(+), 12 deletions(-) diff --git a/libavformat/hls.c b

[FFmpeg-devel] [PATCH V1 3/4] lavf/hls: remove redundancy seekable setting

2019-09-13 Thread Jun Zhao
From: Jun Zhao ffio_init_context with NULL seek callback will setting seekable with 0, so remove the redundancy seekable setting. Signed-off-by: Jun Zhao --- libavformat/hls.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index

[FFmpeg-devel] [PATCH V1 1/4] lavfi/anequalizer: fix memory leak in error handling path

2019-09-10 Thread Jun Zhao
From: Jun Zhao free the pad.name in error handling path to avoid memory leak. Signed-off-by: Jun Zhao --- libavfilter/af_anequalizer.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavfilter/af_anequalizer.c b/libavfilter/af_anequalizer.c index 03d939f..ee82474

[FFmpeg-devel] [PATCH V1 3/4] lavf/avidec: fix memory leak in error handling path

2019-09-10 Thread Jun Zhao
From: Jun Zhao free the value in error handling path to avoid the memory leak. Signed-off-by: Jun Zhao --- libavformat/avidec.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index df78925..e3cd844 100644

[FFmpeg-devel] [PATCH V1 4/4] lavf/mux: remove unnecessary packet reset

2019-09-10 Thread Jun Zhao
From: Jun Zhao remove unnecessary packet reset in av_interleaved_write_frame Signed-off-by: Jun Zhao --- libavformat/mux.c |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/libavformat/mux.c b/libavformat/mux.c index 0227c0d..9bac252 100644 --- a/libavformat/mux.c

[FFmpeg-devel] [PATCH V1 2/4] lavfi/sinc: fix memory leak in error handling path

2019-09-10 Thread Jun Zhao
From: Jun Zhao free work_wraps in error handling path to avoid memory leak. Signed-off-by: Jun Zhao --- libavfilter/asrc_sinc.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/libavfilter/asrc_sinc.c b/libavfilter/asrc_sinc.c index 0135eb9..90f043d 100644

[FFmpeg-devel] [PATCH V1] lavfi/concat: fix logic error in framerate check

2019-09-08 Thread Jun Zhao
From: Jun Zhao fix logic error in framerate check, it's introduced by commit 3ad5d4df9ce794d3eeb0f526c5f3e446bf97c616 Signed-off-by: Jun Zhao --- libavfilter/avf_concat.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/avf_concat.c b/libavfilter

[FFmpeg-devel] [PATCH V1 2/2] configure: fix --disable-v4l2-m2m can't work

2019-09-04 Thread Jun Zhao
From: Jun Zhao Use the command ./configure with/without --disable-v4l2-m2m test. Signed-off-by: Jun Zhao --- configure | 28 +++- 1 files changed, 15 insertions(+), 13 deletions(-) diff --git a/configure b/configure index 3ef8f4e..4141c1e 100755 --- a/configure

[FFmpeg-devel] [PATCH V1 1/2] configure: fix --disable-alsa can't work

2019-09-04 Thread Jun Zhao
From: Jun Zhao fix --disable-alsa can't work in configure Signed-off-by: Jun Zhao --- configure |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b5bff39..3ef8f4e 100755 --- a/configure +++ b/configure @@ -6486,8 +6486,8 @@ else EOF fi

[FFmpeg-devel] [PATCH V1] avutil/file: always set *size to zero if *bufptr is NULL

2019-08-28 Thread Jun Zhao
From: Jun Zhao Always set *size to zero if *bufptr is NULL, it's more make sence. fix #8095 Signed-off-by: Jun Zhao --- libavutil/file.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/libavutil/file.c b/libavutil/file.c index d946085..f228b72 100644

[FFmpeg-devel] [PATCH V1 3/5] lavfi/dnn/dnn_backend_native: Refine the coding style

2019-08-19 Thread Jun Zhao
From: Jun Zhao We perfer the coding style like: /* some stuff */ if (error) { /* error handling */ return -(errorcode); } /* normal actions */ do_something() Signed-off-by: Jun Zhao --- libavfilter/dnn/dnn_backend_native.c | 24

[FFmpeg-devel] [PATCH V1 4/5] lavfi/dnn/dnn_backend_native: fix memory leak in error path

2019-08-19 Thread Jun Zhao
From: Jun Zhao fix memory leak in error path Signed-off-by: Jun Zhao --- libavfilter/dnn/dnn_backend_native.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/libavfilter/dnn/dnn_backend_native.c b/libavfilter/dnn/dnn_backend_native.c index 7b489d0..2619463 100644

[FFmpeg-devel] [PATCH V1 1/5] lavfi/af_adeclick: fix double free after ff_filter_frame fail

2019-08-19 Thread Jun Zhao
From: Jun Zhao ff_filter_frame fail will free the frame, so we just returen after this function fail. Signed-off-by: Jun Zhao --- libavfilter/af_adeclick.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavfilter/af_adeclick.c b/libavfilter/af_adeclick.c index

[FFmpeg-devel] [PATCH V1 2/5] lavfi/avfiltergraph: add check before free the format

2019-08-19 Thread Jun Zhao
From: Jun Zhao ff_merge_samplerates will be deallocate a or b in some case, so add a check before free the format. Signed-off-by: Jun Zhao --- libavfilter/avfiltergraph.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavfilter/avfiltergraph.c b/libavfilter

[FFmpeg-devel] [PATCH V1 5/5] lavf/hlsenc: free the old_filname to avoid memory leak

2019-08-19 Thread Jun Zhao
From: Jun Zhao free the old_filname to avoid memory leak in error handle path. Signed-off-by: Jun Zhao --- libavformat/hlsenc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index f6f9c81..9099c84 100644 --- a/libavformat

[FFmpeg-devel] [PATCH V1] libavdevice: Update the class name as uniform style

2019-08-13 Thread Jun Zhao
From: Jun Zhao Update the class name to uniform indev/outdev style. Signed-off-by: Jun Zhao --- libavdevice/alsa_dec.c|2 +- libavdevice/alsa_enc.c|2 +- libavdevice/avfoundation.m|2 +- libavdevice/bktr.c|2 +- libavdevice/caca.c

[FFmpeg-devel] [PATCH V1] lavf/mov: fix fMP4 tfdt box lead to dts reset issue

2019-08-13 Thread Jun Zhao
From: Jun Zhao In fMP4 format, traf maybe have zero or more trun box, in this case, we just used tfdt as dts once. The sample layout like this: [moof] size=8+1392 [mfhd] size=12+4 sequence number = 29 [traf] size=8+1368 [tfhd] size=12+16, flags=20038 track ID = 1 default

[FFmpeg-devel] [PATCH V1 1/2] lavf/avio: add a ffio_realloc_buf API for AVIO buffer realloc

2019-08-08 Thread Jun Zhao
From: tomajsjiang Add new API ffio_realloc_buf for AVIO buffer realloc. Signed-off-by: Zhongxing Jiang --- libavformat/avio_internal.h |9 + libavformat/aviobuf.c | 31 +++ 2 files changed, 40 insertions(+), 0 deletions(-) diff --git

[FFmpeg-devel] [PATCH V1 2/2] lavf/utils: fix error like "offset 0x1f85: partial file"

2019-08-08 Thread Jun Zhao
From: tomajsjiang fix error like "offset 0x1f85: partial file", the root cause is when read the mp4 file from http, and the moov in the end of the mp4 file, reconfig the buffer will drop some data. Signed-off-by: Jun Zhao Signed-off-by: Zhongxing Jiang --- libavformat/util

[FFmpeg-devel] [PATCH V1] lavf/hls: add http_seekable option for HTTP partial requests

2019-08-07 Thread Jun Zhao
From: Jun Zhao Add http_seekable option for HTTP partial requests, when The EXT-X-BYTERANGE tag indicates that a Media Segment is a sub-range of the resource identified by its URI, we can use HTTP partial requests to get the Media Segment. Signed-off-by: Jun Zhao --- doc/demuxers.texi |4

[FFmpeg-devel] [PATCH V1] examples/encode_video: only add sequence end code for mpeg1/2 video

2019-08-05 Thread Jun Zhao
From: Jun Zhao Only add sequence end code for mpeg1/mpeg2 video, or else use the encoder libx264 or libx265 in this sample, decoding the output file will get unknow NALU type error. Signed-off-by: Jun Zhao --- doc/examples/encode_video.c |3 ++- 1 files changed, 2 insertions(+), 1

[FFmpeg-devel] [PATCH V2 0/2] Add Mastering Display support in showinfo

2019-08-05 Thread Jun Zhao
V2: - change the level from info to error when get invalid side data Jun Zhao (2): lavf/showinfo: support mastering display sidedata lavf/showinfo: use error level when get invalid sidedata libavfilter/vf_showinfo.c | 36 +--- 1 files changed, 33 insertions

[FFmpeg-devel] [PATCH V2 2/2] lavf/showinfo: use error level when get invalid sidedata

2019-08-05 Thread Jun Zhao
From: Jun Zhao Use error level when get invalid sidedata, and remove a unnecessary newline in error message. Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter

[FFmpeg-devel] [PATCH V2 1/2] lavf/showinfo: support mastering display sidedata

2019-08-05 Thread Jun Zhao
From: Jun Zhao support mastering display sidedata. Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index f6f8f49..d5c444e 100644

[FFmpeg-devel] [PATCH V1] lavf/showinfo: support mastering display sidedata

2019-08-04 Thread Jun Zhao
From: Jun Zhao support mastering display sidedata. Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c | 30 ++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index f6f8f49..8889c01 100644

[FFmpeg-devel] [PATCH V2] doc/ffmpeg: Document dts_error_threshold option

2019-08-04 Thread Jun Zhao
From: Jun Zhao Document dts_error_threshold option. Signed-off-by: Jun Zhao --- doc/ffmpeg.texi |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index cd35eb4..1da18d9 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1515,6

[FFmpeg-devel] [PATCH V1 1/3] lavf/hls: remove redundancy reset_packet() after av_packet_unref()

2019-07-21 Thread Jun Zhao
From: Jun Zhao av_packet_unref have reseted the AVPacket, so don't need to call reset_packet after that. Signed-off-by: Jun Zhao --- libavformat/hls.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/libavformat/hls.c b/libavformat/hls.c index 8c12fce..238ebd0

[FFmpeg-devel] [PATCH V1 3/3] lavf/hls: replace the same code logic with ensure_playlist()

2019-07-21 Thread Jun Zhao
From: vacingfang Replace the same code logic with ensure_playlist(), it's will help reusable blocks of code. Reviewed-by: Jun Zhao Signed-off-by: vacingfang --- libavformat/hls.c | 10 +++--- 1 files changed, 3 insertions(+), 7 deletions(-) diff --git a/libavformat/hls.c b/libavformat

[FFmpeg-devel] [PATCH V1 2/3] doc/ffmpeg: Document dts_error_threshold option

2019-07-21 Thread Jun Zhao
From: Jun Zhao Document dts_error_threshold option. Signed-off-by: Jun Zhao --- doc/ffmpeg.texi |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index cd35eb4..2152e62 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -1515,6

[FFmpeg-devel] [PATCH V1] doc/codecs: Add missing documentation for nointra

2019-07-14 Thread Jun Zhao
From: Jun Zhao Add missing documentation for nointra. Signed-off-by: Jun Zhao --- doc/codecs.texi |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/doc/codecs.texi b/doc/codecs.texi index 6b72760..0d0de94 100644 --- a/doc/codecs.texi +++ b/doc/codecs.texi @@ -963,6

[FFmpeg-devel] [PATCH V1] lavf/hlsenc: fix hls muxer time drifts from the actual clock time

2019-07-13 Thread Jun Zhao
From: Jun Zhao fix hls muxer time drifts from the actual clock time, based on Pavel Pilar's fix. fix: Ticket7986 Signed-off-by: Pavel Pilar Signed-off-by: Jun Zhao --- libavformat/hlsenc.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libavformat/hlsenc.c

[FFmpeg-devel] [PATCH V1 2/2] lavfi/showinfo: support regions of interest sidedata

2019-07-13 Thread Jun Zhao
From: Jun Zhao support regions of interest sidedata Signed-off-by: Jun Zhao --- libavfilter/vf_showinfo.c | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index e41c330..f6f8f49 100644

[FFmpeg-devel] [PATCH V1 1/2] lavf/avio: remove ffio_open2_wrapper function

2019-07-12 Thread Jun Zhao
From: Jun Zhao Remove the function ffio_open2_wrapper, it's not being used anymore. Signed-off-by: Jun Zhao --- libavformat/aviobuf.c |6 -- libavformat/internal.h |3 --- 2 files changed, 0 insertions(+), 9 deletions(-) diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c

[FFmpeg-devel] [PATCH V1 2/2] doc/filters: Document missing options for scale in/out color matrix

2019-07-04 Thread Jun Zhao
From: Jun Zhao Document missing options for scale in/out color matrix Signed-off-by: Jun Zhao --- doc/filters.texi |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 700a76f..b7dec47 100644 --- a/doc/filters.texi +++ b/doc

[FFmpeg-devel] [PATCH V1 1/2] lavfi/scale: Add sub-options for in_color_matrix/out_color_matrix

2019-07-04 Thread Jun Zhao
From: Jun Zhao Add sub-options for in_color_matrix/out_color_matrix Signed-off-by: Jun Zhao --- libavfilter/vf_scale.c | 12 ++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index f741419..7aebf56 100644

[FFmpeg-devel] [PATCH V2 1/2] doc/muxers: fix and update docs for HLS muxer

2019-06-28 Thread Jun Zhao
From: Jun Zhao fix and update docs for HLS muxer Signed-off-by: Jun Zhao --- doc/muxers.texi | 24 1 files changed, 16 insertions(+), 8 deletions(-) diff --git a/doc/muxers.texi b/doc/muxers.texi index dd64672..d179584 100644 --- a/doc/muxers.texi +++ b/doc

<    1   2   3   4   5   6   7   8   9   10   >