Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-03-04 Thread Nicolas George
good long-term API where the information is eventually available outside. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To

Re: [FFmpeg-devel] [PATCH V4 2/4] libavfilter/buffersink.c: unref private_ref when frame leaves libavfilter

2021-03-04 Thread Nicolas George
can define things properly exactly like we need. Regards, -- Nicolas George ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg

Re: [FFmpeg-devel] Custom allocation functions

2021-03-06 Thread Nicolas George
xtra parameter to the function. > + * > + * @param externalAlloc The function that will be called when a new buffer > is required. This function can return > + *NULL if it does not take care of allocating > buffers of the provided size. In this case

Re: [FFmpeg-devel] [PATCH 3/5] avfilter/avfilter: Remove avfilter_link_set_closed() on bump

2021-03-07 Thread Nicolas George
s(+), 3 deletions(-) Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-

Re: [FFmpeg-devel] [PATCH 4/5] avfilter/buffersink: Postpone removal of av_[a]buffersink_params_alloc

2021-03-07 Thread Nicolas George
| 2 +- > libavfilter/buffersink.h | 2 +- > libavfilter/version.h| 3 +++ > 3 files changed, 5 insertions(+), 2 deletions(-) Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel

Re: [FFmpeg-devel] [PATCH V5 3/5] libavutil: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-03-08 Thread Nicolas George
"I do not like it"? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email f

Re: [FFmpeg-devel] [PATCH V5 3/5] libavutil: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-03-09 Thread Nicolas George
it even more so > with internal side data formats. Please, there nothing of a black box about libavfilter. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.o

Re: [FFmpeg-devel] [PATCH] avutils/opt: fix discarded-qualifiers compiler warning

2021-03-09 Thread Nicolas George
sizeof(buf) < 11 even though we know that x is between 0 and 10. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsu

Re: [FFmpeg-devel] [PATCH] lavfi: add a libplacebo filter

2021-03-09 Thread Nicolas George
o.c Thanks for the patch. I have not yet looked at the code itself. Please include some documentation, it would be helpful even for reviewing. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpe

Re: [FFmpeg-devel] [PATCH V5 3/5] libavutil: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-03-09 Thread Nicolas George
coupling between filters and graphs to > be limiting. I would like to hear their arguments. Please let me know if you find more accurate instances of these complaints. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffm

[FFmpeg-devel] URLs or not URLs (was: 01/48] avcodec/packet: deprecate) av_init_packet()

2021-03-21 Thread Nicolas George
d fragment part and performing %-unescaping; keep file: without the double slash as an alias for fs:. 4. For some more time, warn users if they are using file: but not file://. 5. Remove the compatibility file: → fs: alias. Regards, -- Nicolas George signature.asc Descrip

Re: [FFmpeg-devel] URLs or not URLs (was: 01/48] avcodec/packet: deprecate) av_init_packet()

2021-03-21 Thread Nicolas George
Nicolas George (12021-03-21): > By the way, about that: at some point, we will need to clarify what part > of our API uses real URLs and what parts uses fake URLs. > > Because as it is, a lot of code looks like it uses URLs but really it > does not. The worst offender is "fil

Re: [FFmpeg-devel] [PATCH 1/2] avcodec/ffwavesynth: Avoid signed integer overflow in phi_at()

2021-03-23 Thread Nicolas George
: continuous fuzzing process > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavcodec/ffwavesynth.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) No objection. Regards, -- Nicolas George

Re: [FFmpeg-devel] [PATCH 2/2] avformat/sbgdec: Check for overflow in last loop in expand_timestamps()

2021-03-23 Thread Nicolas George
rocess > https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg > Signed-off-by: Michael Niedermayer > --- > libavformat/sbgdec.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) No objection. Regards, -- Nicolas George

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-03-23 Thread Nicolas George
; +if (idx < 0) > + return AVERROR(ENOENT); > + > +memcpy(index_entry, &st->internal->index_entries[idx], > sizeof(*index_entry)); Same, of course. > + > +return 0; > +} > + > static int64_t ff_read_timestamp(AVFormatContext *s, int stream_in

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-03-23 Thread Nicolas George
dexEntry) part of the ABI just disappears if we do that. May I suggest that you recalibrate your dislike? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-03-23 Thread Nicolas George
Nicolas George (12021-03-23): > And it is exactly what we are doing when we let users access fields > directly. I mean: AVStream **streams = ctx->streams; av_read_frame(ctx, &packet); AVStream *stream = streams[packet.stream_index]; That should work, ri

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-03-23 Thread Nicolas George
we choose the second, because the first is not really possible. Regards, -- Nicolas George ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] 回复: Possibility to add tonemap filter to ffmpeg 3.2.7

2021-03-24 Thread Nicolas George
ere will help you gratis to take our public free code so that you can use with your private proprietary code. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-03-24 Thread Nicolas George
simple. This is by far the simplest and most efficient solution for both you and our users. So why reject it? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.o

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-03-24 Thread Nicolas George
on, but you will need a little more work to convince me that this is better than just returning the pointer. You make more work for yourself and more work for the user, you have to have a good reason for it. Regards, -- Nicolas George signature.asc Description: PGP signature __

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-03-25 Thread Nicolas George
veloper wants to chime in and comment which approach they > prefer, then that would be ideal. Indeed. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org

Re: [FFmpeg-devel] [PATCH 3/4] avfilter/asrc_sine: Fix invalid left shift of negative number

2021-03-26 Thread Nicolas George
Andreas Rheinhardt (12021-03-26): > Will apply. Sorry, missed it. How does it impact the performance? Or even better: code? This code is meant to be as fast as possible. Regards, -- Nicolas George signature.asc Description: PGP signat

Re: [FFmpeg-devel] [PATCH 3/4] avfilter/asrc_sine: Fix invalid left shift of negative number

2021-03-28 Thread Nicolas George
> casting to unsigned).) Thank you. Then ok, of course. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit

Re: [FFmpeg-devel] [PATCH V3 3/3] libavfilter: add filter dnn_detect for object detection

2021-03-28 Thread Nicolas George
obtained through malloc(). So, worst case scenario, we can use this construct to work around a compiler that does stupid optimizations. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] avformat: add apic to AVStream

2021-03-29 Thread Nicolas George
ation has already finished using them, or does not use them at all? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsub

Re: [FFmpeg-devel] [PATCH] avformat: add apic to AVStream

2021-03-29 Thread Nicolas George
anyway, it is a good time to decide if we want to change something. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To uns

Re: [FFmpeg-devel] [PATCH] avformat: add apic to AVStream

2021-03-29 Thread Nicolas George
having a function to get the packet rather than just a pointer gives us more freedom to extend the API later. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://f

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-04-01 Thread Nicolas George
d trust the users to use it properly to access the fields they need, without speculating. Regards, -- Nicolas George ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link a

Re: [FFmpeg-devel] [PATCH] avfilter/vf_find_rect: Use correct format specifier

2021-04-04 Thread Nicolas George
u are writing new C code with explicit references to long or short, you are almost certainly doing it wrong. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread Nicolas George
oxes); } #define AV_BOUNDING_BOX_GET(header, idx) \ ((AVBoundingBox *)((char *)(header) + (header)->bboxes_offset + (idx) * (header)->bboxes_step)) You can do the same to lift the 128 limit on the name. Regards, -- Nicolas George signature.asc Description: PGP signature _

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread Nicolas George
lpers on both are the same (The standard alloc, > and the alloc + wrapping into frame side data ones). I agree with this. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.o

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-04 Thread Nicolas George
optimization. This is not a variable-length array but a pointer to a variable-length array, it does not cause the optimization problems. As it is, it is just a trick to let the compiler compute offsets for us taking into account alignment requirements. Regards, -- Nicolas George

Re: [FFmpeg-devel] Major bump

2021-04-05 Thread Nicolas George
James Almer (12021-04-05): > Lavd is supposed to be either merged into lavf, or rewritten to > stop depending on lavf The second one is out of question in the short term, it has already been discussed. Regards, -- Nicolas George signature.asc Description: PGP sig

Re: [FFmpeg-devel] [PATCH] avformat/utils: add helper functions to retrieve index entries from an AVStream

2021-04-06 Thread Nicolas George
nstraint "only valid until the next function call on the same structure" is not the most common, nor the least dangerous, but it is not exceptional at all. And in this case, it is by far both the most simple and the most efficient solution. Regards, --

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-06 Thread Nicolas George
If people agree with my analysis that pointers to VLA used to compute sizes and offsets in an isolated function are not a problem, unlike actual VLAs on the stack, then we can just remove it. I do not think we are at risk of adding VLAs by mistake. Regards, -- Nicolas George signature.asc Descrip

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-07 Thread Nicolas George
make sure). Too bad. Can you document which compilers they are? This is an information that should be centralized. We will have have a backup implementation. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel ma

Re: [FFmpeg-devel] [PATCH V6 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-07 Thread Nicolas George
ntually for whoever writes it to decide. Also, assuming the alignment is the same as the size is rather a safe assumption for elementary types. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list f

Re: [FFmpeg-devel] [PATCH V7 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-07 Thread Nicolas George
have a pointer to do the actual arithmetic on, but here we have, and we define the offset by the exact difference between the pointer we want. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing li

Re: [FFmpeg-devel] [PATCH] configure: remove -Werror=vla

2021-04-07 Thread Nicolas George
Derek Buitenhuis (12021-04-07): > We should not be using them as a matter of good practice, as well, IMO. Please follow the discussion. Good practice decourages VLA on the stack, not pointers to VLA. Regards, -- Nicolas George signature.asc Description: PGP signat

Re: [FFmpeg-devel] [PATCH] configure: remove -Werror=vla

2021-04-07 Thread Nicolas George
too much of the stack in an unexpected way, and (2) they require extra registers that ruin optimization in the whole function. Obviously, it does not apply to pointers to VLA. Regards, -- Nicolas George signature.asc Description: PGP signature _

Re: [FFmpeg-devel] [PATCH] configure: remove -Werror=vla

2021-04-07 Thread Nicolas George
Jean-Baptiste Kempf (12021-04-07): > I don't think this is a good idea. Can you explain the problems about VLA that I do not know about? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing lis

Re: [FFmpeg-devel] [PATCH 2/2] avfilter/af_astats: Remove fraction part of integer metadata entries

2021-04-08 Thread Nicolas George
Anton Khirnov (12021-04-08): > Does this mean that there are no stability guarantees for metadata > exported by filters? We can have stability for the components that are good enough to be stable, and no stability yet for components that need enhancing. Regards, -- Nicolas

Re: [FFmpeg-devel] [PATCH V7 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-08 Thread Nicolas George
> So, we need frame_width and frame_height here. But the crop or pad filters will also invalidate the information, and in a different way. How should frame_width and frame_height be used to solve all? Regards, -- Nicolas George signature.asc Description: PGP signature _

Re: [FFmpeg-devel] [PATCH V7 4/6] lavu: add side data AV_FRAME_DATA_BOUNDING_BOXES

2021-04-11 Thread Nicolas George
r with the jargon of any particular sub-field. The specialists of the particular subfield are supposed to be more capable of adjusting. Also, I have observed that the jargon of a narrow field is frequently made of awful misnomers kept more as cargo cult than for any good reason. Regards, -

Re: [FFmpeg-devel] [PATCH 50/87] avfilter/avfilter: Remove compatibility code for old filter options

2021-04-19 Thread Nicolas George
avfilter/avfilter.c | 82 ++ > libavfilter/version.h | 3 -- > 2 files changed, 3 insertions(+), 82 deletions(-) Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel

Re: [FFmpeg-devel] [PATCH 51/87] avfilter: Remove deprecated resample_lavr_opts

2021-04-19 Thread Nicolas George
| 3 --- > 3 files changed, 9 deletions(-) Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit lin

Re: [FFmpeg-devel] [PATCH 52/87] avfilter: Remove deprecated avfilter_link_get_channels

2021-04-19 Thread Nicolas George
--- > 3 files changed, 18 deletions(-) Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link abo

Re: [FFmpeg-devel] [PATCH 53/87] avfilter: Remove avfilter_next/avfilter_register API

2021-04-19 Thread Nicolas George
filter/avfilter.h | 35 --- > libavfilter/version.h| 3 --- > 3 files changed, 76 deletions(-) Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmp

Re: [FFmpeg-devel] [PATCH 54/87] avfilter/avfilter: Remove deprecated avfilter_link_set_closed()

2021-04-19 Thread Nicolas George
--- > 3 files changed, 18 deletions(-) Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link abo

Re: [FFmpeg-devel] [PATCH 55/87] avfilter/formats: Remove avfilter_make_format64_list()

2021-04-19 Thread Nicolas George
rmats.h | 4 > 2 files changed, 11 deletions(-) Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscri

Re: [FFmpeg-devel] [PATCH 56/87] avfilter/transform: Stop exporting internal functions

2021-04-19 Thread Nicolas George
--- > libavfilter/transform.h | 29 + > libavfilter/vf_deshake.c | 5 +++-- > 3 files changed, 5 insertions(+), 52 deletions(-) Should be ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpe

Re: [FFmpeg-devel] [PATCH 57/87] avfilter/Makefile: Don't compile transform.c unconditionally

2021-04-19 Thread Nicolas George
James Almer (12021-04-19): > From: Andreas Rheinhardt > > Signed-off-by: Andreas Rheinhardt > --- > libavfilter/Makefile | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) Should be ok. Regards, -- Nicolas George signature.asc Descript

Re: [FFmpeg-devel] [PATCH 84/87] avfilter/buffersrc: postpone removal of sws_param

2021-04-19 Thread Nicolas George
James Almer (12021-04-19): > It was depreacted less than two years ago > > Signed-off-by: James Almer > --- > libavfilter/version.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) No objection. Regards, -- Nicolas George signature.asc Descript

Re: [FFmpeg-devel] [PATCH 88/90] avfilter: Constify all AVFilters

2021-04-19 Thread Nicolas George
Andreas Rheinhardt (12021-04-19): > This is possible now that the next-API is gone. > > Signed-off-by: Andreas Rheinhardt Ok. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffm

Re: [FFmpeg-devel] [PATCH] libavutil: additional side_data accessor

2021-04-20 Thread Nicolas George
me side data should not happen. Somebody remembers it? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit lin

Re: [FFmpeg-devel] [PATCH] Add general_assembly_bootstrap.pl

2020-04-29 Thread Nicolas George
e for all votes, AFAIK, we only agreed on the procedure for the first vote. Having a procedure already implemented and in the official Git source tree would be pretty disloyal. Regards, -- Nicolas George signature.asc Description: PGP signature

Re: [FFmpeg-devel] [PATCH] Add general_assembly_bootstrap.pl

2020-04-29 Thread Nicolas George
tstrap is a good idea, but using an automatic commit count for future evolutions is a bad idea. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/li

Re: [FFmpeg-devel] [PATCH 1/3] avformat/fifo: add option to delay output

2020-04-29 Thread Nicolas George
quot;Attempt recovery regardless of type of the > error", OFFSET(recover_any_error), > AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, AV_OPT_FLAG_ENCODING_PARAM}, > > +{"output_delay", "Time to delay output, in microseconds", > OFFSET(output_delay), > + AV

Re: [FFmpeg-devel] [PATCH 2/3] avformat/fifo: add option to write packets in paced way

2020-04-29 Thread Nicolas George
t; +fifo->start_time = av_gettime_relative(); > + > return 0; > } > > @@ -637,6 +653,9 @@ static const AVOption options[] = { > {"output_delay", "Time to delay output, in microseconds", > OFFSET(output_delay), > AV_OPT_TYPE_INT, {.i64 =

Re: [FFmpeg-devel] [PATCH v2] avformat/srtenc: split write time into function for better readability

2020-04-29 Thread Nicolas George
s a little reflection to see it is correct. Not much, but more than (s / 6) % 60. Also, you are using PRId64 tu print numbers between 0 and 1000. > +avio_printf(avf->pb, "%d\n", srt->index); > +srt_write_time(avf->pb, s); > +avio_printf(avf->pb, &qu

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

2020-04-29 Thread Nicolas George
u test your change? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

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

2020-04-29 Thread Nicolas George
rc)); > +} > } > +if (size > skip) Same as previous: just skipping the work when the buffer is not big enough seems broken. > avio_write(pb, buf + skip, size - skip); > > if (keep_buffer) { Regards, -- Nicolas George signature.asc Descriptio

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

2020-04-29 Thread Nicolas George
f); > > if (mov->flags & FF_MOV_FLAG_GLOBAL_SIDX) This one seems broken like the other two. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http

Re: [FFmpeg-devel] [PATCH v2] avformat/srtenc: split write time into function for better readability

2020-04-29 Thread Nicolas George
Limin Wang (12020-04-29): > Sorry, the idea is coming from webvtt_write_time() Well, I do not like Matthew Heaney's style. Everybody can use their preferred style in their own files, of course. Regards, -- Nicolas George signature.asc Description: PGP s

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

2020-04-29 Thread Nicolas George
to do something, and with your change it does not do it. These changes are therefore not acceptable. The invalid access need to be fixed, but they need to be fixed properly: since they correspond to a memory allocation failure, there should be some kind of AVERROR(ENOMEM) in there. Regards,

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

2020-04-29 Thread Nicolas George
ust regular contributors to have tested their changes and run FATE before submitting patches. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailma

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

2020-04-29 Thread Nicolas George
ses an on-stack buffer as long as it fits (it is based on BPrint). I have a small intro written about it if people are interested. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.

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

2020-04-30 Thread Nicolas George
r this kind of thing. Can I count on your support when I propose it again? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel T

Re: [FFmpeg-devel] [PATCH v2] doc/filters.texi: complete rewrite of fps filter doc, v2.

2020-05-01 Thread Nicolas George
he library, and links like that happen automatically.) Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit l

Re: [FFmpeg-devel] [PATCH] [libavutil] Add saturated add/sub operations for int64_t.

2020-05-01 Thread Nicolas George
Carl Eugen Hoyos (12020-05-01): > This patch is not ok, please split it. What benefit would it serve? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.

Re: [FFmpeg-devel] [PATCH] doc/encoders: remove ffaac>fdk-aac claim

2020-05-01 Thread Nicolas George
s more like a sales pitch to me. "this encoder has become the default and is the recommended choice" could be in an encoding guide, but it has nothing to do in a reference documentation. Regards, -- Nicolas George signature.asc Descriptio

Re: [FFmpeg-devel] [PATCH] avformat/matroskaenc: always reserve max aac private data

2020-05-01 Thread Nicolas George
perhaps a better solution is to ignore > side data extradata if it's already been written once? Would it not lead to a corrupted file, possibly unplayable? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel

Re: [FFmpeg-devel] [PATCH] avformat/matroskaenc: always reserve max aac private data

2020-05-01 Thread Nicolas George
users. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.o

Re: [FFmpeg-devel] [PATCH] avformat/matroskaenc: always reserve max aac private data

2020-05-01 Thread Nicolas George
hings. I'm > not well versed in aac details. Then for now, I would say that we can only accept when it is bit-identical with the extradata already there. If we cannot test for compatibility more finely, then we have to assume incompatibility and reject every AV_PKT_DATA_NEW_EXTR

Re: [FFmpeg-devel] [PATCH] avformat/matroskaenc: always reserve max aac private data

2020-05-01 Thread Nicolas George
open a dialog "Data successfully saved. Delete original? [Yes] No" and let actual data be lost. We can have an option to ignore the error, but as it is, it really must be an error condition by default. Exactly the same as a write error on the file. Regards, -- Nicolas George signature.

Re: [FFmpeg-devel] [PATCH]lavu/threadmessage: Properly declare a function pointer

2020-05-02 Thread Nicolas George
as before. I thin it could work: void *free_funcp = &mq->free_func; // pointer to data and in free_func_wrap(): void (*free_func)(void *) = *((void (*)(void *)) *)arg; But that needs testing. Do we support an arch where function pointers are different? Regards, -- Nicolas Geor

[FFmpeg-devel] Offense (was: [PATCH 2/2] Use gcc/clang builtins for av_sat_(add|sub)_64_c if available.)

2020-05-02 Thread Nicolas George
t seems annoying: misunderstanding on purpose used as a sarcasm. If you were feeling offended, it was an understandable reaction, but it can still be felt as annoying if there was no intent to offense. Can we please assume goodwill unless we have strong evidence otherwise? Regards, -- Nicolas Ge

Re: [FFmpeg-devel] [PATCH]lavu/threadmessage: Properly declare a function pointer

2020-05-02 Thread Nicolas George
Carl Eugen Hoyos (12020-05-02): > Could you tell me where free_func() is used as a void *? > I don't see it. You are right, I misread. The problem is even simpler: why is there an intermediate variable in the first place? Just test mq->free_func directly. Regards, --

Re: [FFmpeg-devel] [PATCH]lavu/threadmessage: Properly declare a function pointer

2020-05-02 Thread Nicolas George
Carl Eugen Hoyos (12020-05-02): > My guess is to avoid a race condition. Avoid a race condition is: take local variable, unlock, use local variable. Here it is take local variable, lock, use local variable. Regards, -- Nicolas George signature.asc Description: PGP signat

Re: [FFmpeg-devel] [PATCH 2/4] doc/examples/muxing.c: Fixed a compile warning

2020-05-02 Thread Nicolas George
, that is changing the whole logic. At the very least, th commit message should say that. But your changes seemed a little more invasive than that, for example renaming functions. Regards, -- Nicolas George signature.asc Description: PGP signature __

Re: [FFmpeg-devel] [PATCH 3/4] doc/examples/transcoding.c: Fixed a compile warning

2020-05-02 Thread Nicolas George
t; > doc/examples/transcoding.c | 106 +++-- > 1 file changed, 55 insertions(+), 51 deletions(-) Again, >100 lines changed, that's not fixing a compilation warning. Regards, -- Nicolas George signature.asc Description: PGP signature _

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

2020-05-02 Thread Nicolas George
lance.lmw...@gmail.com (12020-05-02): > will apply the patch set tomorrow if no comments. I lost track of all these patches, I thought the options were to be changed to AV_OPT_TYPE_DURATION. Regards, -- Nicolas George signature.asc Description: PGP signat

Re: [FFmpeg-devel] [PATCH 1/4] doc/examples/demuxing_decoding: Fixed a compile warning

2020-05-02 Thread Nicolas George
64 deletions(-) Same remark as for the other similar patches: it is not fixing a warning, it changing the whole logic. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https:

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

2020-05-02 Thread Nicolas George
Marton Balint (12020-05-02): > That would break existing command lines... Then a reasonable transition plan needs to be prepared. Not blocking for this patch, though. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffm

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

2020-05-02 Thread Nicolas George
.com/ It still needs to be changed, just properly: introduce a new option, warn about deprecation. It would have been simpler to catch it in the beginning :-( Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mai

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

2020-05-02 Thread Nicolas George
| 5 +++ > 3 files changed, 83 insertions(+), 4 deletions(-) I do not have any objection to this version, but I do not maintain that code, nor do I know it very well. Regards, -- Nicolas George signature.asc Description: PGP signature __

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

2020-05-02 Thread Nicolas George
lance.lmw...@gmail.com (12020-05-02): > The most important is document, I think current option is OK to use. > deprecation is more confusing. An option with the wrong type is confusing too. But deprecation is temporary. Regards, -- Nicolas George signature.asc Description: PGP sig

Re: [FFmpeg-devel] [PATCH 2/4] doc/examples/muxing.c: Fixed a compile warning

2020-05-02 Thread Nicolas George
e patch make it harder to review. You could name the merged function write_any_frame(). And if you think it is best, make another patch to rename both functions: it would be easier to review. Regards, -- Nicolas George signature.asc Description

Re: [FFmpeg-devel] [PATCH 1/4] doc/examples/demuxing_decoding: Fixed a compile warning

2020-05-02 Thread Nicolas George
date to new encoding API" would be fine. The warning is a minor detail, it's just the thing that told you this was needed. But see James' message. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mai

Re: [FFmpeg-devel] [PATCH] avformat/matroskaenc: return error if aac extradata changes

2020-05-02 Thread Nicolas George
what I observed in the rest of the code. > ret = get_aac_sample_rates(s, side_data, side_data_size, > &track->sample_rate, > &output_sample_rate); > if (ret < 0) Thanks, I think it does the right thing. Regards, --

Re: [FFmpeg-devel] subtitles filter and -ss

2020-05-04 Thread Nicolas George
ill start on 20:10, but the subtitles will start from 00:00. You can use -copyts to keep the timestamps of the video matching with the subtitles. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ff

Re: [FFmpeg-devel] [PATCH] lavc/bsf: add an Opus metadata bitstream filter

2020-05-05 Thread Nicolas George
T16_MAX + 1), INT16_MAX, .flags = > > FLAGS }, > > + > > +{ NULL }, > > +}; > > You are using an AV_OPT_TYPE_INT parameter, yet the actual type of the > destination is int64_t. This won't work on big endian systems. Make gain > an int. Or make it a float and multiply it

Re: [FFmpeg-devel] Who is the FFmpeg documentation for? [was: Re: [PATCH v2] doc/filters.texi: complete rewrite of fps filter doc, v2.]

2020-05-05 Thread Nicolas George
t duplicate a word of it. Normal users will follow the link, because they need the syntax anyway. Lazy users can go use a GUI. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-devel] [PATCH] lavc/bsf: add an Opus metadata bitstream filter

2020-05-05 Thread Nicolas George
Lynne (12020-05-05): > Pushed. I find rather rude that you did not even acknowledge the suggestion in this mail: https://ffmpeg.org/pipermail/ffmpeg-devel/2020-May/262151.html -- Nicolas George signature.asc Description: PGP signature ___ ffm

Re: [FFmpeg-devel] [PATCH 0/3] Patch set to delay output live stream

2020-05-06 Thread Nicolas George
ou among the developers who would be favorable to merging the shared objects to avoid gratuitous issues of ABI compatibility? Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https:

Re: [FFmpeg-devel] [PATCH] avcodec/mpeg12enc: replace return -1 with proper error codes

2020-05-06 Thread Nicolas George
l = 8; /* Main */ > @@ -205,7 +205,7 @@ static av_cold int encode_init(AVCodecContext *avctx) > if (s->drop_frame_timecode && s->frame_rate_index != 4) { > av_log(avctx, AV_LOG_ERROR, > "Drop frame time code only allowed wi

Re: [FFmpeg-devel] [PATCH] avcodec/mpeg12enc: replace return -1 with proper error codes

2020-05-07 Thread Nicolas George
invent a new error code. One would be fixed later, the other not. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsub

Re: [FFmpeg-devel] [PATCH v2 2/5] avcodec/mpegvideo_enc: return more specific error codes for ff_mpv_encode_init()

2020-05-07 Thread Nicolas George
return -1; > +return AVERROR(EINVAL); > } > s->out_format = FMT_H261; > avctx->delay = 0; > @@ -798,7 +799,7 @@ FF_ENABLE_DEPRECATION_WARNINGS > break; > case AV_CODEC_ID_H263: > if (!CONFIG_H263_ENC

Re: [FFmpeg-devel] [PATCH v2 1/4] avutil/internal: add FF_ALLOC_TYPED_ARRAY_OR_GOTO & FF_ALLOCZ_TYPED_ARRAY_OR_GOTO

2020-05-12 Thread Nicolas George
let the caller print the error message. Third design mistake: hard-coded use of goto. Best design: #define FF_ALLOC_ARRAY_OR_GOTO(p, nelem, elsize, ret, error)\ {\ p = av_malloc_array(nelem, elsize);\ if (!p) {\ ret = AVERROR(ENOMEM); \ error; }\ } Regards, -- Nicolas

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