[FFmpeg-devel] [PATCH v5 1/4] add AV_FRAME_DATA_USER_DATA_UNREGISTERED side data type

2020-01-01 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- rebase the patchset for the latest code doc/APIchanges | 3 +++ libavutil/frame.c | 1 + libavutil/frame.h | 8 libavutil/version.h | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges

[FFmpeg-devel] [PATCH v5 3/4] avfilter/vf_showinfo: display user data unregistered message

2020-01-01 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 33 + 1 file changed, 33 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 31f6b32..bb3b37e 100644 --- a/libavfilter/vf_showinfo.c +++

[FFmpeg-devel] [PATCH v1] avcodec/decode: increase nb_bsfs after av_bsf_alloc in case alloc failed

2019-12-23 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/decode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index cd275bacc4..1ebbca4724 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -227,13 +227,13 @@ int

[FFmpeg-devel] [PATCH v2] avutil/frame: Use av_realloc_array()

2019-12-23 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavutil/frame.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index e4038096c2..1a67eda91d 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -693,14 +693,11 @@

[FFmpeg-devel] [PATCH v2 2/2] avcodec/h265_metadata_bsf: add option to insert a string as SEI unregistered user data

2019-12-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- update to add keyframe NAL checking as H.264 patch for global header doc/bitstream_filters.texi | 8 libavcodec/h265_metadata_bsf.c | 68 +- 2 files changed, 75 insertions(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH v1 1/2] avcodec/ass: remove the unneeded ()

2019-12-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/ass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ass.c b/libavcodec/ass.c index b4f081c..a51673f 100644 --- a/libavcodec/ass.c +++ b/libavcodec/ass.c @@ -105,7 +105,7 @@ int ff_ass_add_rect(AVSubtitle

[FFmpeg-devel] [PATCH v1 2/2] avcodec/vc1dec: remove the unneeded ()

2019-12-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/vc1dec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c index ac3198e..d1ca2af 100644 --- a/libavcodec/vc1dec.c +++ b/libavcodec/vc1dec.c @@ -688,7 +688,7 @@ static

[FFmpeg-devel] [PATCH v3] avutil/frame: Use av_realloc_array()

2019-12-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavutil/frame.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavutil/frame.c b/libavutil/frame.c index e403809..2e763ef 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -696,11 +696,8 @@ AVFrameSideData

[FFmpeg-devel] [PATCH v1] avcodec/h264_metadata_bsf: Fix user data failed to insert in case no SPSs NAL for global headers

2019-12-25 Thread lance . lmwang
From: Limin Wang FLV, MP4... will enable global_header default and place SPSs headers in extradata instead of every keyframe. So it'll failed to insert user data unregisted for no SPSs NAL after first AU without the patch. Please test it with below command: ./ffmpeg -f lavfi -i testsrc -c:v

[FFmpeg-devel] [PATCH v1] avcodec/mvha: fix warning: variable 'size' set but not used

2019-12-27 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/mvha.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/mvha.c b/libavcodec/mvha.c index c270063..afe5e51 100644 --- a/libavcodec/mvha.c +++ b/libavcodec/mvha.c @@ -161,6 +161,9 @@ static int decode_frame(AVCodecContext

[FFmpeg-devel] [PATCH v1 1/5] fate: add signalstats 8bit and 10bit test

2019-12-30 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- tests/fate/filter-video.mak | 5 + tests/ref/fate/filter-metadata-signalstats-yuv420p | 1 + tests/ref/fate/filter-metadata-signalstats-yuv420p10 | 1 + 3 files changed, 7 insertions(+) create mode 100644

[FFmpeg-devel] [PATCH v1 4/5] avfilter/vf_signalstats: make the alloc array used for any bit depth

2019-12-30 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_signalstats.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c index 7dadff45b3..8b2a9ca7c2 100644 --- a/libavfilter/vf_signalstats.c

[FFmpeg-devel] [PATCH v1 2/5] avfilter/vf_signalstats: rename config_props -> config_output

2019-12-30 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_signalstats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c index abe813d91d..cba14e4fa7 100644 --- a/libavfilter/vf_signalstats.c +++

[FFmpeg-devel] [PATCH v1 5/5] avfilter/vf_signalstats: reindent after last commit

2019-12-30 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_signalstats.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c index 8b2a9ca7c2..1ccc16dd38 100644 --- a/libavfilter/vf_signalstats.c +++

[FFmpeg-devel] [PATCH v1 3/5] avfilter/vf_signalstats: add SignalstatsContext.maxsize variable

2019-12-30 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_signalstats.c | 20 +++- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/libavfilter/vf_signalstats.c b/libavfilter/vf_signalstats.c index cba14e4fa7..7dadff45b3 100644 ---

[FFmpeg-devel] [PATCH v1] avfilter/af_amix: change the max range of the number of inputs

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_amix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index 89a1b0568f..1e1753b078 100644 --- a/libavfilter/af_amix.c +++ b/libavfilter/af_amix.c @@ -182,7 +182,7 @@

[FFmpeg-devel] [PATCH v2 2/2] avfilter/vf_mix: change the max range of the number of inputs

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_mix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c index b5a282a..9e1ae79 100644 --- a/libavfilter/vf_mix.c +++ b/libavfilter/vf_mix.c @@ -305,7 +305,7 @@ static int

[FFmpeg-devel] [PATCH v1] avcodec/decode: replace avctx->internal with avci for better readability

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/decode.c | 52 +++-- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/libavcodec/decode.c b/libavcodec/decode.c index cd275bacc4..03b9da25f9 100644 --- a/libavcodec/decode.c +++

[FFmpeg-devel] [PATCH v1] avfilter/af_amix: change the max range of the number of inputs

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_amix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c index 89a1b0568f..1e1753b078 100644 --- a/libavfilter/af_amix.c +++ b/libavfilter/af_amix.c @@ -182,7 +182,7 @@

[FFmpeg-devel] [PATCH v6] avutil: add AV_FRAME_DATA_USER_DATA_UNREGISTERED side data type

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- Fix for the v5 commit message change when copy(add avutil:) doc/APIchanges | 3 +++ libavutil/frame.c | 1 + libavutil/frame.h | 8 libavutil/version.h | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git

[FFmpeg-devel] [PATCH v7 6/8] avcodec/h264_metadata_bsf: Fix user data failed to insert in case no SPSs NAL for global headers

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/h264_metadata_bsf.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index d96a50dbf7..a320589530 100644 --- a/libavcodec/h264_metadata_bsf.c +++

[FFmpeg-devel] [PATCH v7 4/8] avcodec/h264: create user data unregistered side data for H.264

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/h264_sei.c | 30 +- libavcodec/h264_sei.h | 2 + libavcodec/h264_slice.c | 14 +++ tests/ref/fate/mov-zombie | 195 +- 4 files changed, 171 insertions(+), 70 deletions(-) diff --git

[FFmpeg-devel] [PATCH v7 3/8] avfilter/vf_showinfo: display user data unregistered message

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 37 + 1 file changed, 37 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 31f6b32aa4..14e73019d2 100644 --- a/libavfilter/vf_showinfo.c +++

[FFmpeg-devel] [PATCH v7 1/8] avutil: add AV_FRAME_DATA_USER_DATA_UNREGISTERED side data type

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/APIchanges | 3 +++ libavutil/frame.c | 1 + libavutil/frame.h | 8 libavutil/version.h | 2 +- 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 3c24dc6fbc..6e1673e25e

[FFmpeg-devel] [PATCH v7 5/8] avcodec/h264_metadata_bsf: Fix for the incorrect user data with hyphens

2020-01-06 Thread lance . lmwang
From: Limin Wang How to reproduce: ./ffmpeg -f lavfi -i testsrc -c:v libx264 -g 25 -bsf:v h264_metadata=sei_user_data=186f3693-b7b3-4f2c-9653-21492feee5b8+hello -frames:v 1 h264.mp4 master: [Parsed_showinfo_0 @ 0x7fc8a0703180] UUID=186f3693-7030-4f2c-6030-21492feee5b8 [Parsed_showinfo_0 @

[FFmpeg-devel] [PATCH v7 2/8] avcodec/hevc_sei: add support for user data unregistered SEI message

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/hevc_sei.c | 31 + libavcodec/hevc_sei.h | 6 ++ libavcodec/hevcdec.c| 14 + tests/ref/fate/hevc-monochrome-crop | 3 +++ 4 files changed, 54

[FFmpeg-devel] [PATCH v7 8/8] avcodec/h265_metadata_bsf: add option to insert a string as SEI unregistered user data

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/bitstream_filters.texi | 8 libavcodec/h265_metadata_bsf.c | 68 +- 2 files changed, 75 insertions(+), 1 deletion(-) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index

[FFmpeg-devel] [PATCH v7 7/8] avcodec/cbs_h2645: add helper functions to insert and delete SEI PREFIX messages

2020-01-06 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/cbs_h2645.c | 93 ++ libavcodec/cbs_h265.h | 25 2 files changed, 118 insertions(+) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 5f71d80584..2fc957dc27 100644

[FFmpeg-devel] [PATCH v1] fftools/ffprobe: Use format specifier PRId64 instead of %lld

2020-04-10 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- fftools/ffprobe.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index e3f221f560..a32bc529d9 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -408,7 +408,7 @@

[FFmpeg-devel] [PATCH v1] avformat/hlsenc: return media_url directly if failed to get seperator

2020-04-08 Thread lance . lmwang
From: Limin Wang Fix ticket: 8606 Signed-off-by: Limin Wang --- libavformat/hlsenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index a29b2625e4..e34833fd89 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -1251,6 +1251,8 @@

[FFmpeg-devel] [PATCH v1 2/2] avcodec/nvenc_hevc: add spatial-aq and temporal-aq option to consistent with nvenc_h264

2020-04-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/nvenc_hevc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c index 7c9b3848f1..d06cb0d6b0 100644 --- a/libavcodec/nvenc_hevc.c +++ b/libavcodec/nvenc_hevc.c @@ -96,7 +96,9 @@

[FFmpeg-devel] [PATCH v1 1/2] avcodec/nvenc_h264: add spatial_aq and temporal_aq option to consistent with nvenc_hevc

2020-04-14 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/nvenc_h264.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c index 479155fe15..a2e77e67d0 100644 --- a/libavcodec/nvenc_h264.c +++ b/libavcodec/nvenc_h264.c @@ -99,7 +99,9 @@

[FFmpeg-devel] [PATCH v1 2/2] avformat/http: Fix for invalid use of av_strtok

2020-04-17 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/http.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libavformat/http.c b/libavformat/http.c index c941557..20545ed 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -786,6 +786,7 @@ static int

[FFmpeg-devel] [PATCH v1 1/2] avformat/ftp: Fix for invalid use of av_strtok

2020-04-17 Thread lance . lmwang
From: Limin Wang By the av_strtok() description: * On the first call to av_strtok(), s should point to the string to * parse, and the value of saveptr is ignored. In subsequent calls, s * should be NULL, and saveptr should be unchanged since the previous * call. Signed-off-by: Limin Wang

[FFmpeg-devel] [PATCH v3 3/3] avcodec/libx264: return error if unknown picture type encountered

2020-04-17 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/libx264.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index edd343e..3fa2311 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -476,7 +476,8 @@ static

[FFmpeg-devel] [PATCH v3 2/3] avcodec/libx264: return immediately if encode_nals return 0

2020-04-17 Thread lance . lmwang
From: Limin Wang x264_encoder_encode can return 0 with nnal 0. As a result, encode_nals will return 0. In this condition, it's better to return 0 immediately to avoid the following unneeded pict_type and flags setting. Signed-off-by: Limin Wang --- libavcodec/libx264.c | 3 +++ 1 file

[FFmpeg-devel] [PATCH v3 1/3] avcodec/libx265: Fix Uninitialized scalar variable

2020-04-17 Thread lance . lmwang
From: Limin Wang return error if unknown picture type encountered Fixes CID 1457234 Signed-off-by: Limin Wang Signed-off-by: Limin Wang --- haven't merge yet, so rebase to the git master libavcodec/libx265.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/libx265.c

[FFmpeg-devel] [PATCH v2] avcodec/bsf: simplify the code

2020-04-17 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/bsf.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c index b9fc771..3cacbd4 100644 --- a/libavcodec/bsf.c +++ b/libavcodec/bsf.c @@ -534,11 +534,7 @@ int

[FFmpeg-devel] [PATCH v1] avformat/dashenc: use av_asprintf()

2020-04-07 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/dashenc.c | 23 ++- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 94d4639..0c281a4 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c

[FFmpeg-devel] [PATCH v2] avformat/dashenc: remove the arbitrary restrictions for filename

2020-04-07 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/dashenc.c | 28 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 94d4639..f80f6f2 100644 --- a/libavformat/dashenc.c +++

[FFmpeg-devel] [PATCH v3] avformat/dashenc: remove the arbitrary restrictions for filename

2020-04-07 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/dashenc.c | 26 +- 1 file changed, 9 insertions(+), 17 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 94d463972a..903fdd0aa6 100644 --- a/libavformat/dashenc.c +++

[FFmpeg-devel] [PATCH v1] doc/utils: add more examples for valid time duration

2020-04-07 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/utils.texi | 9 + 1 file changed, 9 insertions(+) diff --git a/doc/utils.texi b/doc/utils.texi index 05a2f81626..ca599f145b 100644 --- a/doc/utils.texi +++ b/doc/utils.texi @@ -126,6 +126,15 @@ The following examples are all valid

[FFmpeg-devel] [PATCH v2 1/4] fftools/ffmpeg: set AV_PKT_FLAG_KEY for the subtitle packet

2020-04-20 Thread lance . lmwang
From: Limin Wang For better code review, the patch is helping to update the fate tests result so the change of ffmpeg.c willbe deleted in the last patch. Signed-off-by: Limin Wang --- fftools/ffmpeg.c | 1 + tests/ref/fate/binsub-movtextenc | 2 +- tests/ref/fate/sub2video

[FFmpeg-devel] [PATCH v2 3/4] avformat/utils: move is_intra_only() to header and rename to ff_is_intra_only()

2020-04-20 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/internal.h | 2 ++ libavformat/utils.c| 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/internal.h b/libavformat/internal.h index 329b2e972d..716e42cc3e 100644 --- a/libavformat/internal.h +++

[FFmpeg-devel] [PATCH v2 4/4] avformat/mux: Set AV_PKT_FLAG_KEY for is_intra_only packet

2020-04-20 Thread lance . lmwang
From: Limin Wang delete the previous change of ffmpeg.c and movenc.c as mux.c will be in charge of setting AV_PKT_FLAG_KEY. Signed-off-by: Limin Wang --- fftools/ffmpeg.c | 1 - libavformat/internal.h | 2 ++ libavformat/mux.c | 7 ++- libavformat/tests/movenc.c | 1

[FFmpeg-devel] [PATCH v2 2/4] avformat/tests/movenc: set AV_PKT_FLAG_KEY for audio packet

2020-04-20 Thread lance . lmwang
From: Limin Wang For better code review, the patch is helping to update the fate tests result so the change of movenc.c will be deleted in the last patch. Signed-off-by: Limin Wang --- libavformat/tests/movenc.c | 1 + tests/ref/fate/movenc | 50 +++--- 2

[FFmpeg-devel] [PATCH v2 1/4] fftools/ffmpeg: set AV_PKT_FLAG_KEY for the subtitle packet

2020-04-20 Thread lance . lmwang
From: Limin Wang For better code review, the patch is helping to update the fate tests result so the change of ffmpeg.c will be deleted in the last patch. Signed-off-by: Limin Wang --- fftools/ffmpeg.c | 1 + tests/ref/fate/binsub-movtextenc | 2 +- tests/ref/fate/sub2video

[FFmpeg-devel] [PATCH v3 1/2] avformat/utils: move is_intra_only() to header and rename to ff_is_intra_only()

2020-04-21 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/internal.h | 2 ++ libavformat/utils.c| 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/internal.h b/libavformat/internal.h index 329b2e9..716e42c 100644 --- a/libavformat/internal.h +++

[FFmpeg-devel] [PATCH v3 2/2] avformat/mux: Set AV_PKT_FLAG_KEY for is_intra_only packet

2020-04-21 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/internal.h | 2 + libavformat/mux.c| 7 +++- tests/ref/fate/binsub-movtextenc | 2 +- tests/ref/fate/movenc| 50 +++ tests/ref/fate/sub2video | 86

[FFmpeg-devel] [PATCH v4 1/2] avformat/utils: move is_intra_only() to header and rename to ff_is_intra_only()

2020-04-21 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/internal.h | 2 ++ libavformat/utils.c| 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libavformat/internal.h b/libavformat/internal.h index 329b2e9..716e42c 100644 --- a/libavformat/internal.h +++

[FFmpeg-devel] [PATCH v4 2/2] avformat/mux: Set AV_PKT_FLAG_KEY for is_intra_only packet

2020-04-21 Thread lance . lmwang
From: Limin Wang The patch will make audio and subtitle packets be marked as AV_PKT_FLAG_KEY. For audio, it'll caused the audio sample to be sync sample. To verify ref/fate/movenc results: 1. Get the movenc test data [lmwang@vpn ffmpeg]$ libavformat/tests/movenc -w && mkdir -p audio_old && mv

[FFmpeg-devel] [PATCH v1] avcodec/utils: use av_rescale()

2020-04-20 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 26c038dfd9..005d596dfd 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -2229,8 +2229,8 @@ int64_t

[FFmpeg-devel] [PATCH v1] avcodec/h264_metadata_bsf: add option to delete SEI user data

2020-04-20 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/bitstream_filters.texi | 3 +++ libavcodec/h264_metadata_bsf.c | 19 +++ 2 files changed, 22 insertions(+) diff --git a/doc/bitstream_filters.texi b/doc/bitstream_filters.texi index 8fe5b3ad75..652eb4620f 100644 ---

[FFmpeg-devel] [PATCH v1 2/4] avfilter/af_loudnorm: Add compact mode to simplify stats parsing

2020-04-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/filters.texi | 2 +- libavfilter/af_loudnorm.c | 12 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/filters.texi b/doc/filters.texi index 738a40df4e..19171d48dc 100644 --- a/doc/filters.texi +++

[FFmpeg-devel] [PATCH v1 3/4] avfilter/af_loudnorm: Add support for two pass stats for measure

2020-04-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_loudnorm.c | 41 ++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_loudnorm.c b/libavfilter/af_loudnorm.c index 3012aa2471..380d0570d4 100644 ---

[FFmpeg-devel] [PATCH v1 4/4] avfilter/ebur128: prefer to use variable instead of type for sizeof

2020-04-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/ebur128.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libavfilter/ebur128.c b/libavfilter/ebur128.c index c8986fb5e1..ca2fca0066 100644 --- a/libavfilter/ebur128.c +++ b/libavfilter/ebur128.c @@

[FFmpeg-devel] [PATCH v1 1/4] avfilter/af_loudnorm: Add file option for the measured stats

2020-04-09 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/filters.texi | 3 +++ libavfilter/af_loudnorm.c | 54 +-- 2 files changed, 55 insertions(+), 2 deletions(-) diff --git a/doc/filters.texi b/doc/filters.texi index 3931d8d79e..738a40df4e 100644 ---

[FFmpeg-devel] [PATCH v1] avcodec/bsf: simplify the code

2020-04-17 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/bsf.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libavcodec/bsf.c b/libavcodec/bsf.c index 7b96183e64..c4c939c205 100644 --- a/libavcodec/bsf.c +++ b/libavcodec/bsf.c @@ -533,7 +533,7 @@ end: int

[FFmpeg-devel] [PATCH v1] avformat/movenc: cosmetics

2020-04-03 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/movenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 6db09b7..7140ad3 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -2711,7 +2711,7 @@ static

[FFmpeg-devel] [PATCH v1 3/3] avfilter/af_adelay: Check sscanf() return value

2020-03-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_adelay.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_adelay.c b/libavfilter/af_adelay.c index c9647771f2..7f498ba190 100644 --- a/libavfilter/af_adelay.c +++ b/libavfilter/af_adelay.c @@

[FFmpeg-devel] [PATCH v1 2/3] avfilter/vf_mix: Check sscanf() return value

2020-03-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_mix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c index 9e1ae79e00..e47f7e2301 100644 --- a/libavfilter/vf_mix.c +++ b/libavfilter/vf_mix.c @@ -108,7 +108,8 @@

[FFmpeg-devel] [PATCH v1 1/3] avfilter/af_acrossover: Check sscanf() return value

2020-03-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_acrossover.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c index 20d1d2bda9..c9404b95cd 100644 --- a/libavfilter/af_acrossover.c +++

[FFmpeg-devel] [PATCH v1 1/2] avcodec/mpeg12enc: Use FF_PROFILE_MPEG2_xxx macros

2020-04-03 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/mpeg12enc.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c index b460e78a59..643ba8165a 100644 --- a/libavcodec/mpeg12enc.c +++ b/libavcodec/mpeg12enc.c @@

[FFmpeg-devel] [PATCH v1 2/2] avcodec/mpeg12enc: Support mpeg2 encoder profile with const options

2020-04-03 Thread lance . lmwang
From: Limin Wang make setting profile more user friendly Signed-off-by: Limin Wang --- doc/encoders.texi | 8 libavcodec/mpeg12enc.c | 19 ++- libavcodec/mpegvideo.h | 1 + 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/doc/encoders.texi

[FFmpeg-devel] [PATCH v1] avformat/concat: priv_data should be freed internally

2020-04-03 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/concat.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libavformat/concat.c b/libavformat/concat.c index ea3bc1dfde..cfe14760eb 100644 --- a/libavformat/concat.c +++ b/libavformat/concat.c @@ -75,7 +75,6 @@ static av_cold int

[FFmpeg-devel] [PATCH v1] avformat/mux: Set AV_PKT_FLAG_KEY for is_intra_only packet

2020-04-03 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/mux.c| 16 tests/ref/fate/binsub-movtextenc | 2 +- tests/ref/fate/movenc| 50 +++ tests/ref/fate/sub2video | 86 4 files

[FFmpeg-devel] [PATCH v2 2/2] avcodec/mpeg12enc: Support mpeg2 encoder profile with const options

2020-04-03 Thread lance . lmwang
From: Limin Wang make setting profile more user friendly Signed-off-by: Limin Wang --- doc/encoders.texi | 8 libavcodec/mpeg12enc.c | 22 +- libavcodec/mpegvideo.h | 1 + 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/doc/encoders.texi

[FFmpeg-devel] [PATCH v3 2/2] avcodec/mpeg12enc: Support mpeg2 encoder profile with const options

2020-04-03 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/encoders.texi | 8 libavcodec/mpeg12enc.c | 22 +- libavcodec/mpegvideo.h | 1 + 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index e23b6b3..5022b94

[FFmpeg-devel] [PATCH v2 3/3] avfilter/af_adelay: Check sscanf() return value

2020-03-27 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_adelay.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_adelay.c b/libavfilter/af_adelay.c index c964777..2bb05e7 100644 --- a/libavfilter/af_adelay.c +++ b/libavfilter/af_adelay.c @@ -155,7

[FFmpeg-devel] [PATCH v2 1/3] avfilter/af_acrossover: Check sscanf() return value

2020-03-27 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_acrossover.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c index f70c50b..91f77cc 100644 --- a/libavfilter/af_acrossover.c +++

[FFmpeg-devel] [PATCH v2 2/3] avfilter/vf_mix: Check sscanf() return value

2020-03-27 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_mix.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c index 9e1ae79..e47f7e2 100644 --- a/libavfilter/vf_mix.c +++ b/libavfilter/vf_mix.c @@ -108,7 +108,8 @@ static

[FFmpeg-devel] [PATCH v3 1/3] avfilter/af_acrossover: Check sscanf() return value

2020-03-28 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_acrossover.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_acrossover.c b/libavfilter/af_acrossover.c index f70c50b..002f378 100644 --- a/libavfilter/af_acrossover.c +++

[FFmpeg-devel] [PATCH v3 3/3] avfilter/af_adelay: Check sscanf() return value

2020-03-28 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/af_adelay.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_adelay.c b/libavfilter/af_adelay.c index c964777..6ac81c2 100644 --- a/libavfilter/af_adelay.c +++ b/libavfilter/af_adelay.c @@ -155,7

[FFmpeg-devel] [PATCH v3 2/3] avfilter/vf_mix: Check sscanf() return value

2020-03-28 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_mix.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavfilter/vf_mix.c b/libavfilter/vf_mix.c index 9e1ae79..9bb1b7a 100644 --- a/libavfilter/vf_mix.c +++ b/libavfilter/vf_mix.c @@ -108,7 +108,10 @@

[FFmpeg-devel] [PATCH v2 3/4] avformat: add subtitle support in master playlist m3u8

2020-03-29 Thread lance . lmwang
From: Limin Wang Test with the following command for the webvtt subtitle: $ ./ffmpeg -y -i input_with_subtitle.mkv \ -b:v:0 5250k -c:v h264 -pix_fmt yuv420p -profile:v main -level 4.1 \ -b:a:0 256k \ -c:s webvtt -c:a mp2 -ar 48000 -ac 2 -map 0:v -map 0:a:0 -map 0:s:0 \ -f hls -var_stream_map

[FFmpeg-devel] [PATCH v1 2/3] avformat/libsrt: clarify option description for timeout and latency unit of measurement

2020-03-31 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/libsrt.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index 2d6fc4b..c01d639 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -96,8 +96,8 @@

[FFmpeg-devel] [PATCH v1 1/3] doc/protocols: clarify timeout and latency unit of measurement for SRT

2020-03-31 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/protocols.texi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/protocols.texi b/doc/protocols.texi index e510019..7aa7585 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -1255,7 +1255,7 @@

[FFmpeg-devel] [PATCH v1 3/3] avformat/libsrt: change open_timeout to int64_t to avoid integer overflow

2020-03-31 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/libsrt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c index c01d639..4de575b 100644 --- a/libavformat/libsrt.c +++ b/libavformat/libsrt.c @@ -361,7 +361,7 @@ static int

[FFmpeg-devel] [PATCH v1 1/2] avfilter/vf_subtitles: remove unneeded ifdef

2020-03-30 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_subtitles.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libavfilter/vf_subtitles.c b/libavfilter/vf_subtitles.c index a3b4029af4..2f312b0ba8 100644 --- a/libavfilter/vf_subtitles.c +++

[FFmpeg-devel] [PATCH v1 2/2] avfilter/vf_subtitles: add force_style option for ass subtitle filter

2020-03-30 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- doc/filters.texi | 4 libavfilter/vf_subtitles.c | 23 +++ 2 files changed, 27 insertions(+) diff --git a/doc/filters.texi b/doc/filters.texi index 328e984e92..d26d90d1bb 100644 --- a/doc/filters.texi +++

[FFmpeg-devel] [PATCH v1 1/2] avfilter/vf_showinfo: check if the s12m data size is valid

2020-03-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 4 1 file changed, 4 insertions(+) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 79b79db2d3..71534d1fa8 100644 --- a/libavfilter/vf_showinfo.c +++ b/libavfilter/vf_showinfo.c @@ -318,6

[FFmpeg-devel] [PATCH v1 2/2] avfilter/vf_showinfo: limit the max number of timecode

2020-03-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavfilter/vf_showinfo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_showinfo.c b/libavfilter/vf_showinfo.c index 71534d1fa8..b0b0051357 100644 --- a/libavfilter/vf_showinfo.c +++

[FFmpeg-devel] [PATCH v1 4/4] avformat/hlsenc: use av_asprintf()

2020-03-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/hlsenc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index d7b9c0e20a..694dab42dd 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2950,13 +2950,11

[FFmpeg-devel] [PATCH v1 1/4] avformat/hlsenc: remove the first slash of the relative path line in the master m3u8 file

2020-03-26 Thread lance . lmwang
From: Limin Wang Please testing with the following command: ./ffmpeg -y -i input.mkv \ -b:v:0 5250k -c:v h264 -pix_fmt yuv420p -profile:v main -level 4.1 \ -b:a:0 256k \ -c:a mp2 -ar 48000 -ac 2 -map 0:v -map 0:a:0\ -f hls -var_stream_map "v:0,a:0" \ -master_pl_name master.m3u8 -t 300

[FFmpeg-devel] [PATCH v1 3/4] avformat: add subtitle support in master playlist m3u8

2020-03-26 Thread lance . lmwang
From: Limin Wang Test with the following command for the webvtt subtitle: $ ./ffmpeg -y -i input_with_subtitle.mkv \ -b:v:0 5250k -c:v h264 -pix_fmt yuv420p -profile:v main -level 4.1 \ -b:a:0 256k \ -c:s webvtt -c:a mp2 -ar 48000 -ac 2 -map 0:v -map 0:a:0 -map 0:s:0 \ -f hls -var_stream_map

[FFmpeg-devel] [PATCH v1 2/4] avformat/hlsplaylist: simplify code for checking whether the string is empty

2020-03-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/hlsplaylist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/hlsplaylist.c b/libavformat/hlsplaylist.c index 9cbd02353f..56244496c0 100644 --- a/libavformat/hlsplaylist.c +++

Re: [FFmpeg-devel] [PATCH v2] avformat/url: check url root node when rel include double dot

2020-04-27 Thread lance . lmwang
On Mon, Apr 27, 2020 at 06:51:47PM +0800, Steven Liu wrote: > fix ticket: 8625 > and add testcase into url for double dot corner case I think you need update ./tests/ref/fate/url also. make fate-url SAMPLES=../fate-suite > > Suggested-by: Martin Storsjö > Signed-off-by: Steven Liu > --- >

[FFmpeg-devel] [PATCH v1] avformat/movenc: cosmetics

2020-04-25 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/movenc.c | 138 +-- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 253cff86eb..6b0235f115 100644 --- a/libavformat/movenc.c +++

[FFmpeg-devel] [PATCH v1 1/6] fftools/ffmpeg: use local variable with same contents directly

2020-04-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- fftools/ffmpeg.c | 31 ++- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index d896b14..d2b0e71 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -501,32

[FFmpeg-devel] [PATCH v1 4/6] avformat/dashenc: use av_reallocp_array()

2020-04-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/dashenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 96c0ea3..e3e187c 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1731,7 +1731,7 @@

[FFmpeg-devel] [PATCH v1 2/6] avformat/dashenc: cosmetics

2020-04-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/dashenc.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index b082536..5fbe4dd 100644 --- a/libavformat/dashenc.c +++

[FFmpeg-devel] [PATCH v1 6/6] avformat/rtmpproto: use av_reallocp_array()

2020-04-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/rtmpproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 42aacbd..e23426b 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -163,7

[FFmpeg-devel] [PATCH v1 3/6] avformat/dashenc: use local variable and avoid calculate duration multiple times

2020-04-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/dashenc.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c index 5fbe4dd..96c0ea3 100644 --- a/libavformat/dashenc.c +++ b/libavformat/dashenc.c @@ -1916,6

[FFmpeg-devel] [PATCH v1] MAINTAINERS: add myself to the general developers list

2020-04-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- I have actively contributed to FFmpeg in the past year and should be familiar with the entire code base and the rules of the developers. Up to now, more than one hundred patches have been accepted and pushed with the help of other developers.

[FFmpeg-devel] [PATCH v1 5/6] avformat/smoothstreamingenc: use av_reallocp_array()

2020-04-26 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/smoothstreamingenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c index 0e4f531..d10d5d1 100644 --- a/libavformat/smoothstreamingenc.c +++

[FFmpeg-devel] [PATCH 3/5] avformat/matroskaenc: reindent after the previous commit

2020-04-29 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/matroskaenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index f0474da44f..41446c3825 100644 --- a/libavformat/matroskaenc.c +++

[FFmpeg-devel] [PATCH 2/5] avformat/matroskaenc: fix invalid pointer access if avio_get_dyn_buf failed

2020-04-29 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/matroskaenc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 784973a951..f0474da44f 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -374,9

[FFmpeg-devel] [PATCH 1/5] avformat/dashenc: fix invalid pointer access if avio_get_dyn_buf failed

2020-04-29 Thread lance . lmwang
From: Limin Wang If an error occurs, avio_get_dyn_buf() will return 0 and buf is NULL, so it's necessary to check the return value for the following code will access the buf pointer with index. In addition, the buf len should be greater than written_len to avoid the buffer overflow access.

[FFmpeg-devel] [PATCH 4/5] avformat/movenc: check the return value of avio_get_dyn_buf()

2020-04-29 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/movenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 32e8109268..1a97e7c883 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5251,10 +5251,11

[FFmpeg-devel] [PATCH 5/5] avformat/movenc: reindent after the previous commit

2020-04-29 Thread lance . lmwang
From: Limin Wang Signed-off-by: Limin Wang --- libavformat/movenc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 1a97e7c883..ad04143f14 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -5252,9 +5252,9

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