Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] fftools/ffmpeg: reset pointer, which could be reused by Android and iOS
@ 2023-03-03  6:51 xufuji456
  2023-03-03  9:23 ` "zhilizhao(赵志立)"
  0 siblings, 1 reply; 4+ messages in thread
From: xufuji456 @ 2023-03-03  6:51 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: xufuji456

---
 fftools/ffmpeg.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index 743bc0c6b6..0ce9531235 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -569,6 +569,13 @@ static void ffmpeg_cleanup(int ret)
     av_freep(&input_files);
     av_freep(&output_files);
 
+    nb_input_files    = 0;
+    nb_output_files   = 0;
+    nb_filtergraphs   = 0;
+    input_files       = NULL;
+    output_files      = NULL;
+    filtergraphs      = NULL;
+
     uninit_opts();
 
     avformat_network_deinit();
-- 
2.32.0 (Apple Git-132)

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: reset pointer, which could be reused by Android and iOS
  2023-03-03  6:51 [FFmpeg-devel] [PATCH] fftools/ffmpeg: reset pointer, which could be reused by Android and iOS xufuji456
@ 2023-03-03  9:23 ` "zhilizhao(赵志立)"
  2023-03-03  9:31   ` Nicolas George
  0 siblings, 1 reply; 4+ messages in thread
From: "zhilizhao(赵志立)" @ 2023-03-03  9:23 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: xufuji456


> On Mar 3, 2023, at 14:51, xufuji456 <839789740@qq.com> wrote:
> 
> ---
> fftools/ffmpeg.c | 7 +++++++
> 1 file changed, 7 insertions(+)
> 
> diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
> index 743bc0c6b6..0ce9531235 100644
> --- a/fftools/ffmpeg.c
> +++ b/fftools/ffmpeg.c
> @@ -569,6 +569,13 @@ static void ffmpeg_cleanup(int ret)
>     av_freep(&input_files);
>     av_freep(&output_files);
> 
> +    nb_input_files    = 0;
> +    nb_output_files   = 0;
> +    nb_filtergraphs   = 0;
> +    input_files       = NULL;
> +    output_files      = NULL;
> +    filtergraphs      = NULL;
> +

Until we decided to make ffmpeg cmd works as a library,
it doesn’t matter. I’m interested on the idea to make fftools
work like a library. But it depends on the community.

https://patchwork.ffmpeg.org/project/ffmpeg/patch/tencent_929F62AB2F4E5E70082DE99AE040769A1008@qq.com/

>     uninit_opts();
> 
>     avformat_network_deinit();
> -- 
> 2.32.0 (Apple Git-132)
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: reset pointer, which could be reused by Android and iOS
  2023-03-03  9:23 ` "zhilizhao(赵志立)"
@ 2023-03-03  9:31   ` Nicolas George
  2023-03-03 10:24     ` [FFmpeg-devel] =?gb18030?b?u9i4tKO6ICBbUEFUQ0hdIGZmdG9vbHMvZmZt?= =?gb18030?q?peg=3A_reset_pointer=2C_which_could_be_reused_by_Android_and_iOS?= =?gb18030?B?0Oy4o8Kh?=
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas George @ 2023-03-03  9:31 UTC (permalink / raw)
  To: FFmpeg development discussions and patches; +Cc: xufuji456

"zhilizhao(赵志立)" (12023-03-03):
> >     av_freep(&input_files);
> >     av_freep(&output_files);
> > +    input_files       = NULL;
> > +    output_files      = NULL;
> Until we decided to make ffmpeg cmd works as a library,
> it doesn’t matter.

It is worse than that: the patch completely ignores the semantic of
av_freep().

Useless patch with no explanations at all in the mail => just ignore the
mail.

>		      I’m interested on the idea to make fftools
> work like a library. But it depends on the community.

That would be more or less what an extended libavfilter with movie
source and sink would be.

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-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [FFmpeg-devel] =?gb18030?b?u9i4tKO6ICBbUEFUQ0hdIGZmdG9vbHMvZmZt?= =?gb18030?q?peg=3A_reset_pointer=2C_which_could_be_reused_by_Android_and_iOS?=
  2023-03-03  9:31   ` Nicolas George
@ 2023-03-03 10:24     ` =?gb18030?B?0Oy4o8Kh?=
  0 siblings, 0 replies; 4+ messages in thread
From: =?gb18030?B?0Oy4o8Kh?= @ 2023-03-03 10:24 UTC (permalink / raw)
  To: =?gb18030?B?RkZtcGVnIGRldmVsb3BtZW50IGRpc2N1c3Npb25zIGFuZCBwYXRjaGVz?=
  Cc: =?gb18030?B?Z2Vvcmdl?=

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb18030", Size: 1846 bytes --]

Thank you for your reminding, George.
I really ignore av_freep() above.
Please ignore this patch.


// xufuji456


------------------&nbsp;ԭʼÓʼþ&nbsp;------------------
·¢¼þÈË:                                                                                                                        "ffmpeg-devel"                                                                                    <george@nsup.org&gt;;
·¢ËÍʱ¼ä:&nbsp;2023Äê3ÔÂ3ÈÕ(ÐÇÆÚÎå) ÏÂÎç5:31
ÊÕ¼þÈË:&nbsp;"FFmpeg development discussions and patches"<ffmpeg-devel@ffmpeg.org&gt;;
³­ËÍ:&nbsp;"Ð츣¡"<839789740@qq.com&gt;;
Ö÷Ìâ:&nbsp;Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: reset pointer, which could be reused by Android and iOS



"zhilizhao(ÕÔÖ¾Á¢)" (12023-03-03):
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; av_freep(&amp;input_files);
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; av_freep(&amp;output_files);
&gt; &gt; +&nbsp;&nbsp;&nbsp; input_files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = NULL;
&gt; &gt; +&nbsp;&nbsp;&nbsp; output_files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = NULL;
&gt; Until we decided to make ffmpeg cmd works as a library,
&gt; it doesn¡¯t matter.

It is worse than that: the patch completely ignores the semantic of
av_freep().

Useless patch with no explanations at all in the mail =&gt; just ignore the
mail.

&gt;		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I¡¯m interested on the idea to make fftools
&gt; work like a library. But it depends on the community.

That would be more or less what an extended libavfilter with movie
source and sink would be.

Regards,

-- 
&nbsp; 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-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-03 10:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-03  6:51 [FFmpeg-devel] [PATCH] fftools/ffmpeg: reset pointer, which could be reused by Android and iOS xufuji456
2023-03-03  9:23 ` "zhilizhao(赵志立)"
2023-03-03  9:31   ` Nicolas George
2023-03-03 10:24     ` [FFmpeg-devel] =?gb18030?b?u9i4tKO6ICBbUEFUQ0hdIGZmdG9vbHMvZmZt?= =?gb18030?q?peg=3A_reset_pointer=2C_which_could_be_reused_by_Android_and_iOS?= =?gb18030?B?0Oy4o8Kh?=

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git