[FFmpeg-devel] [PATCH v4] examples/extract_mvs.c: dont disply motionless vectors

2020-03-20 Thread numberwolf
Reviewed-by: Paul B Mahol Signed-off-by: numberwolf --- Here, don't need show motionless vectors,because they're useless. And remove comments. doc/examples/extract_mvs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/examples/extract_mvs.c b/doc/examples/extract_mvs.c index

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2020-03-20 Thread James Almer
On 3/20/2020 10:31 AM, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > configure |1 + > libavcodec/Makefile |1 + > libavcodec/allcodecs.c |1 + > libavcodec/avcodec.h|1 + > libavcodec/bink2.c | 869 >

[FFmpeg-devel] [PATCH] avformat/subtitles: Don't increment packet counter prematurely

2020-03-20 Thread Andreas Rheinhardt
Do it only if the packet has been successfully allocated in av_new_packet() -- otherwise on error a completely uninitialized packet would be unreferenced later. Signed-off-by: Andreas Rheinhardt --- libavformat/subtitles.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2020-03-20 Thread Peter Ross
On Fri, Mar 20, 2020 at 02:31:05PM +0100, Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > configure |1 + > libavcodec/Makefile |1 + > libavcodec/allcodecs.c |1 + > libavcodec/avcodec.h|1 + > libavcodec/bink2.c | 869

[FFmpeg-devel] [PATCH v2] avformat/bethsoftvid: Avoid allocations and frees for palettes

2020-03-20 Thread Andreas Rheinhardt
by putting the palette in the demuxer's context. This also allows to remove this demuxer's read_close-function. Signed-off-by: Andreas Rheinhardt --- libavformat/bethsoftvid.c | 25 +++-- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git

[FFmpeg-devel] [PATCH 2/2] avformat/bethsoftvid: Fix potential memleak upon reallocation failure

2020-03-20 Thread Andreas Rheinhardt
The classical ptr = av_realloc(ptr, size), just with av_fast_realloc(). Signed-off-by: Andreas Rheinhardt --- libavformat/bethsoftvid.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/libavformat/bethsoftvid.c b/libavformat/bethsoftvid.c index

[FFmpeg-devel] [PATCH 1/2] avformat/bethsoftvid: Avoid allocations and frees for palettes

2020-03-20 Thread Andreas Rheinhardt
by putting the palette in the demuxer's context. This also allows to remove this demuxer's read_close-function. Signed-off-by: Andreas Rheinhardt --- libavformat/bethsoftvid.c | 24 ++-- 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/libavformat/bethsoftvid.c

Re: [FFmpeg-devel] [PATCH]common.mak: Also clean Windows debug files

2020-03-20 Thread Hendrik Leppkes
On Thu, Mar 19, 2020 at 12:39 AM Carl Eugen Hoyos wrote: > > Hi! > > Without this patch, make clean (and make distclean) do not delete > ffmpeg_g.ilk and ffmpeg_g.pdb (and friends). > LGTM ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avformat/argo_asf: add missing #include

2020-03-20 Thread Zane van Iperen
On Fri, 20 Mar 2020 22:28:28 +0100 "Carl Eugen Hoyos" wrote: > Am Fr., 20. März 2020 um 16:53 Uhr schrieb Zane van Iperen > : > > > > Fixes the use of the implicit declaration > > of avpriv_request_sample(). > > I don't see such a warning... > Yeah sorry, was something screwy going on.

Re: [FFmpeg-devel] [PATCH v1] fftools/ffmpeg: set AV_PKT_FLAG_KEY for the subtitle packet

2020-03-20 Thread Limin Wang
On Fri, Mar 20, 2020 at 06:03:53PM +0200, Jan Ekström wrote: > On Fri, Mar 20, 2020 at 5:45 PM wrote: > > > > From: Limin Wang > > > > This fixes webvtt segment output. > > > > Please testing with the following command and check the output: > > ./ffmpeg -i

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Andreas Rheinhardt
Carl Eugen Hoyos: > Am Fr., 20. März 2020 um 23:29 Uhr schrieb Andreas Rheinhardt > : > >> PS: Actually, there are a couple of functions that need const: >> av_find_best_stream() provides a way to get a pointer to a non-const >> AVCodec (it casts the const away internally); and >>

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Carl Eugen Hoyos
Am Fr., 20. März 2020 um 23:29 Uhr schrieb Andreas Rheinhardt : > PS: Actually, there are a couple of functions that need const: > av_find_best_stream() provides a way to get a pointer to a non-const > AVCodec (it casts the const away internally); and > av_input/output_audio/video_device_next()

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Andreas Rheinhardt
Derek Buitenhuis: > On 21/08/2019 10:04, Andreas Rheinhardt wrote: >> +#if FF_API_NONCONST_ENUM_PROTOCOLS >> const char *avio_enum_protocols(void **opaque, int output) >> +#else >> +const char *avio_enum_protocols(const void **opaque, int output) >> +#endif > > Do we actually allow breakage like

Re: [FFmpeg-devel] Re: [PATCH v3] examples/extract_mvs.c: don't disply motionless vectors

2020-03-20 Thread Carl Eugen Hoyos
Am Fr., 20. März 2020 um 17:59 Uhr schrieb porscheg...@foxmail.com : > LGTM without comments. > > ping. Please resend your patch without the comments (and the mail without the html codes). Carl Eugen ___ ffmpeg-devel mailing list

Re: [FFmpeg-devel] [PATCH] avformat/argo_asf: add missing #include

2020-03-20 Thread Carl Eugen Hoyos
Am Fr., 20. März 2020 um 16:53 Uhr schrieb Zane van Iperen : > > Fixes the use of the implicit declaration > of avpriv_request_sample(). I don't see such a warning... Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Carl Eugen Hoyos
Am Fr., 20. März 2020 um 19:33 Uhr schrieb Derek Buitenhuis : > > On 21/08/2019 10:04, Andreas Rheinhardt wrote: > > +#if FF_API_NONCONST_ENUM_PROTOCOLS > > const char *avio_enum_protocols(void **opaque, int output) > > +#else > > +const char *avio_enum_protocols(const void **opaque, int output)

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/wavpack: Prevent frame format from being wrong

2020-03-20 Thread Michael Niedermayer
On Fri, Mar 20, 2020 at 10:18:49AM +0100, Anton Khirnov wrote: > Quoting Michael Niedermayer (2020-03-20 01:03:36) > > Fixes: out of array access > > Fixes: > > 21193/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-5125168956702720 > > > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH 1/3] lavformat: Prepare to make avio_enum_protocols const correct

2020-03-20 Thread Derek Buitenhuis
On 21/08/2019 10:04, Andreas Rheinhardt wrote: > +#if FF_API_NONCONST_ENUM_PROTOCOLS > const char *avio_enum_protocols(void **opaque, int output) > +#else > +const char *avio_enum_protocols(const void **opaque, int output) > +#endif Do we actually allow breakage like this (even at major bumps)?

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2020-03-20 Thread Vittorio Giovara
On Fri, Mar 20, 2020 at 9:31 AM Paul B Mahol wrote: > Signed-off-by: Paul B Mahol > --- > configure |1 + > libavcodec/Makefile |1 + > libavcodec/allcodecs.c |1 + > libavcodec/avcodec.h|1 + > libavcodec/bink2.c | 869

Re: [FFmpeg-devel] [PATCH v1] fftools/ffmpeg: set AV_PKT_FLAG_KEY for the subtitle packet

2020-03-20 Thread Andreas Rheinhardt
Jan Ekström: > On Fri, Mar 20, 2020 at 5:45 PM wrote: >> >> From: Limin Wang >> >> This fixes webvtt segment output. >> >> Please testing with the following command and check the output: >> ./ffmpeg -i ../fate-suite/sub/MicroDVD_capability_tester.srt -f segment >> -segment_time 10 \ >>

[FFmpeg-devel] Re?? [PATCH v3] examples/extract_mvs.c: don't disply motionless vectors

2020-03-20 Thread porscheg...@foxmail.com
LGTM without comments. On 3/17/20, numberwolf https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe". ___ ffmpeg-devel mailing list

Re: [FFmpeg-devel] [PATCH v1] fftools/ffmpeg: set AV_PKT_FLAG_KEY for the subtitle packet

2020-03-20 Thread Jan Ekström
On Fri, Mar 20, 2020 at 6:12 PM Nicolas George wrote: > > Jan Ekström (12020-03-20): > > I do wonder if this is just a case of people forgetting to set the > > flag for the relevant packets in the relevant modules? > > > > I'm not sure if all API users should be forced to handle this > >

Re: [FFmpeg-devel] [PATCH v1] fftools/ffmpeg: set AV_PKT_FLAG_KEY for the subtitle packet

2020-03-20 Thread Nicolas George
Jan Ekström (12020-03-20): > I do wonder if this is just a case of people forgetting to set the > flag for the relevant packets in the relevant modules? > > I'm not sure if all API users should be forced to handle this > separately. If the packets are decode'able by themselves, they should > be

Re: [FFmpeg-devel] [PATCH v1] fftools/ffmpeg: set AV_PKT_FLAG_KEY for the subtitle packet

2020-03-20 Thread Jan Ekström
On Fri, Mar 20, 2020 at 5:45 PM wrote: > > From: Limin Wang > > This fixes webvtt segment output. > > Please testing with the following command and check the output: > ./ffmpeg -i ../fate-suite/sub/MicroDVD_capability_tester.srt -f segment > -segment_time 10 \ > -segment_list_size 0

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/wavpack: Prevent frame format from being wrong

2020-03-20 Thread David Bryant
On 3/20/20 1:54 AM, Paul B Mahol wrote: > lgtm Looks good to me too, sorry about that! > > On 3/20/20, Michael Niedermayer wrote: >> Fixes: out of array access >> Fixes: >> 21193/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-5125168956702720 >> >> Found-by: continuous

[FFmpeg-devel] [PATCH] avformat/argo_asf: add missing #include

2020-03-20 Thread Zane van Iperen
Fixes the use of the implicit declaration of avpriv_request_sample(). Signed-off-by: Zane van Iperen --- libavformat/argo_asf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/argo_asf.c b/libavformat/argo_asf.c index 3339425244..cf1c7472c1 100644 --- a/libavformat/argo_asf.c

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

2020-03-20 Thread lance . lmwang
From: Limin Wang This fixes webvtt segment output. Please testing with the following command and check the output: ./ffmpeg -i ../fate-suite/sub/MicroDVD_capability_tester.srt -f segment -segment_time 10 \ -segment_list_size 0 -segment_list sub.m3u8 -segment_format webvtt -scodec webvtt

Re: [FFmpeg-devel] [PATCH] avcodec: add bink2 video decoder

2020-03-20 Thread James Almer
On 3/20/2020 10:31 AM, Paul B Mahol wrote: > +static av_cold int bink2_decode_end(AVCodecContext *avctx) > +{ > +Bink2Context * const c = avctx->priv_data; > + > +av_frame_free(>last); > +av_freep(>current_q); > +av_freep(>prev_q); > +av_freep(>current_dc); > +

Re: [FFmpeg-devel] [PATCH v2] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Nicolas George
Steven Liu (12020-03-20): > Yes, av_strtok get the first part and the other part, > And use the strtol get the first part to long, it check the string range, and > get the endpoint of (not number part.) > The end is same as the first part. My exact comment was wrong. The actual problem is that

Re: [FFmpeg-devel] [PATCH v2] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Steven Liu
> 2020年3月20日 下午8:25,Nicolas George 写道: > >> The end can be null, there can only maxFrameRate=25, or maxFrameRate=60/2. > > It is a value from the outside, you can't trust it on pail of security > exploit. Yes, av_strtok get the first part and the other part, And use the strtol get the first

Re: [FFmpeg-devel] [PATCH v2] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Nicolas George
Steven Liu (12020-03-20): > To: Nicolas George Please heed reply-to headers. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH v2] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Nicolas George
Steven Liu (12020-03-20): > Which one leak? if xmlGetProp return null, val should null and dose not leak. Yes, my mistake. > The end can be null, there can only maxFrameRate=25, or maxFrameRate=60/2. It is a value from the outside, you can't trust it on pail of security exploit. > Just tell

Re: [FFmpeg-devel] [PATCH v2] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Steven Liu
> 2020年3月20日 下午7:19,Nicolas George 写道: > > Steven Liu (12020-03-20): >> These member will be used for get more correct information of the MPD >> >> Suggested-by: Andreas Rheinhardt >> Suggested-by: Nicolas George >> Signed-off-by: Steven Liu >> --- >> libavformat/dashdec.c | 180

Re: [FFmpeg-devel] [PATCH v2 2/2] avfilter: add vf_overlay_cuda

2020-03-20 Thread Timo Rothenpieler
On 20.03.2020 12:30, Yaroslav Pogrebnyak wrote: On 20.03.20 00:47, Timo Rothenpieler wrote: I'm looking into adding hardware-frame support to make_writable, so modifications might not be needed. Yep it seems to be more consistent if av_frame_make_writable could support hardware frames.

Re: [FFmpeg-devel] [PATCH v2 2/2] avfilter: add vf_overlay_cuda

2020-03-20 Thread Yaroslav Pogrebnyak
On 20.03.20 00:47, Timo Rothenpieler wrote: I'm looking into adding hardware-frame support to make_writable, so modifications might not be needed. Yep it seems to be more consistent if av_frame_make_writable could support hardware frames. Please let me know if you are going to do it, or if

Re: [FFmpeg-devel] [PATCH v2] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Nicolas George
Steven Liu (12020-03-20): > These member will be used for get more correct information of the MPD > > Suggested-by: Andreas Rheinhardt > Suggested-by: Nicolas George > Signed-off-by: Steven Liu > --- > libavformat/dashdec.c | 180 +++--- > 1 file changed,

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Steven Liu
> 2020年3月20日 下午7:05,Nicolas George 写道: > > Steven Liu (12020-03-20): >> Do you mean, > > I mean you should only propose code that actually does something. That > should be easy to understand: if you store into a variable without using > the value, remove it; then iterate. Ok, I get it,

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Nicolas George
Steven Liu (12020-03-20): > Do you mean, I mean you should only propose code that actually does something. That should be easy to understand: if you store into a variable without using the value, remove it; then iterate. Regards, -- Nicolas George signature.asc Description: PGP signature

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Steven Liu
> 2020年3月20日 下午6:51,Nicolas George 写道: > > Steven Liu (12020-03-20): >> Why the specification add these attributes into the documents if these >> attributes not useful, just kidding? >> I said I’m not the specification author. > > What Anton and I are trying to explain to you is that either

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Nicolas George
Steven Liu (12020-03-20): > Why the specification add these attributes into the documents if these > attributes not useful, just kidding? > I said I’m not the specification author. What Anton and I are trying to explain to you is that either your code handles the attributes according to the

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Steven Liu
> 2020年3月20日 下午4:34,Anton Khirnov 写道: > > Quoting Steven Liu (2020-03-19 00:30:52) >> >> Thanks >> >> Steven Liu >> >>> 2020年3月19日 上午12:48,Andreas Rheinhardt 写道: >>> >>> Hello, >>> >>> before the actual review I want to tell you that I actually agree with >>> Nicholas. I don't see the

Re: [FFmpeg-devel] [PATCH] avformat/asfdec_f: Fix overflow check in get_tag()

2020-03-20 Thread Anton Khirnov
Quoting Michael Niedermayer (2020-03-17 01:09:51) > Fixes: signed integer overflow: 2 * 1210064928 cannot be represented in type > 'int' > Fixes: > 20873/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5761116909338624 > > Found-by: continuous fuzzing process >

Re: [FFmpeg-devel] [PATCH] avcodec/hevc, h2645_parse: Fix HEVC NAL unit names and constants

2020-03-20 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2020-03-18 14:41:23) > This commit fixes the names and constants of the reserved NAL units > with nal_unit_type 22 resp. 23. They were "IRAP_IRAP_VLC2x", but are > actually "RSV_IRAP_VLC2x". > > This also required a change to cbs_h265_syntax_template.c. > >

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/wavpack: Prevent frame format from being wrong

2020-03-20 Thread Anton Khirnov
Quoting Michael Niedermayer (2020-03-20 01:03:36) > Fixes: out of array access > Fixes: > 21193/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-5125168956702720 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg >

Re: [FFmpeg-devel] [PATCH 2/2] avcodec/wavpack: Prevent frame format from being wrong

2020-03-20 Thread Paul B Mahol
lgtm On 3/20/20, Michael Niedermayer wrote: > Fixes: out of array access > Fixes: > 21193/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-5125168956702720 > > Found-by: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by:

Re: [FFmpeg-devel] [PATCH] avformat/dashdec: fix memleak for commit commit e134c203

2020-03-20 Thread Anton Khirnov
Quoting Steven Liu (2020-03-19 00:30:52) > > Thanks > > Steven Liu > > > 2020年3月19日 上午12:48,Andreas Rheinhardt 写道: > > > > Hello, > > > > before the actual review I want to tell you that I actually agree with > > Nicholas. I don't see the point of already parsing stuff that is not > > used

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/bsf: Don't set defaults for AVClass without options

2020-03-20 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2020-03-18 17:10:37) > Anton Khirnov: > > Quoting Andreas Rheinhardt (2020-03-17 22:31:46) > >> This happened for AVBSFContext. > >> > >> Signed-off-by: Andreas Rheinhardt > >> --- > > Maybe ok. Not sure if it's better to drop it because it's unused or keep > > it in

Re: [FFmpeg-devel] [PATCH]lavf/subviewerdec: Support higher sub-second precision

2020-03-20 Thread Carl Eugen Hoyos
Am Fr., 20. März 2020 um 01:49 Uhr schrieb Michael Niedermayer : > > On Thu, Mar 19, 2020 at 10:18:33PM +0100, Carl Eugen Hoyos wrote: > > Am Do., 19. März 2020 um 19:32 Uhr schrieb Michael Niedermayer > > : > > > > > > On Wed, Mar 18, 2020 at 02:16:30AM +0100, Carl Eugen Hoyos wrote: > > > > Hi!