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/opt_common: add missing include of avf/version.h
@ 2022-05-13  9:46 softworkz
  2022-05-13 13:32 ` Andreas Rheinhardt
  2022-05-14 11:18 ` [FFmpeg-devel] [PATCH v2] " softworkz
  0 siblings, 2 replies; 6+ messages in thread
From: softworkz @ 2022-05-13  9:46 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: softworkz

From: softworkz <softworkz@hotmail.com>

required for PRINT_LIB_INFO(avfilter...

Signed-off-by: softworkz <softworkz@hotmail.com>
---
    fftools/opt_common: add missing include of avf/version.h
    
    MSVC compiler complains without this include

Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-27%2Fsoftworkz%2Fsubmit_version_include-v1
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-27/softworkz/submit_version_include-v1
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/27

 fftools/opt_common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fftools/opt_common.c b/fftools/opt_common.c
index c303db4d09..5a5e35bd7f 100644
--- a/fftools/opt_common.c
+++ b/fftools/opt_common.c
@@ -51,6 +51,8 @@
 #include "libavdevice/avdevice.h"
 #include "libavdevice/version.h"
 
+#include "libavfilter/version.h"
+
 #include "libswscale/swscale.h"
 #include "libswscale/version.h"
 

base-commit: d2d8b9b972ba2df6b2a2ebe29f5307cbb7a69c33
-- 
ffmpeg-codebot
_______________________________________________
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] 6+ messages in thread

* Re: [FFmpeg-devel] [PATCH] fftools/opt_common: add missing include of avf/version.h
  2022-05-13  9:46 [FFmpeg-devel] [PATCH] fftools/opt_common: add missing include of avf/version.h softworkz
@ 2022-05-13 13:32 ` Andreas Rheinhardt
  2022-05-13 23:51   ` Soft Works
  2022-05-14 11:18 ` [FFmpeg-devel] [PATCH v2] " softworkz
  1 sibling, 1 reply; 6+ messages in thread
From: Andreas Rheinhardt @ 2022-05-13 13:32 UTC (permalink / raw)
  To: ffmpeg-devel

softworkz:
> From: softworkz <softworkz@hotmail.com>
> 
> required for PRINT_LIB_INFO(avfilter...
> 
> Signed-off-by: softworkz <softworkz@hotmail.com>
> ---
>     fftools/opt_common: add missing include of avf/version.h
>     
>     MSVC compiler complains without this include
> 
> Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-27%2Fsoftworkz%2Fsubmit_version_include-v1
> Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-27/softworkz/submit_version_include-v1
> Pull-Request: https://github.com/ffstaging/FFmpeg/pull/27
> 
>  fftools/opt_common.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/fftools/opt_common.c b/fftools/opt_common.c
> index c303db4d09..5a5e35bd7f 100644
> --- a/fftools/opt_common.c
> +++ b/fftools/opt_common.c
> @@ -51,6 +51,8 @@
>  #include "libavdevice/avdevice.h"
>  #include "libavdevice/version.h"
>  
> +#include "libavfilter/version.h"
> +
>  #include "libswscale/swscale.h"
>  #include "libswscale/version.h"
>  
> 
> base-commit: d2d8b9b972ba2df6b2a2ebe29f5307cbb7a69c33

What does "complain" here mean? Compilation failure?
It should already be included via
opt_common.h->cmdutils.h->avfilter.h->lavfi/version.h. The latter
inclusion relies on HAVE_AV_CONFIG_H to not be defined. It should only
be defined for the libraries, not fftools, so if it is defined for you
for this file your setup is wrong.
That being said it is nevertheless good to include this and avfilter.h
directly.

- Andreas

_______________________________________________
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] 6+ messages in thread

* Re: [FFmpeg-devel] [PATCH] fftools/opt_common: add missing include of avf/version.h
  2022-05-13 13:32 ` Andreas Rheinhardt
@ 2022-05-13 23:51   ` Soft Works
  0 siblings, 0 replies; 6+ messages in thread
From: Soft Works @ 2022-05-13 23:51 UTC (permalink / raw)
  To: FFmpeg development discussions and patches



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces@ffmpeg.org> On Behalf Of
> Andreas Rheinhardt
> Sent: Friday, May 13, 2022 3:33 PM
> To: ffmpeg-devel@ffmpeg.org
> Subject: Re: [FFmpeg-devel] [PATCH] fftools/opt_common: add missing
> include of avf/version.h
> 
> softworkz:
> > From: softworkz <softworkz@hotmail.com>
> >
> > required for PRINT_LIB_INFO(avfilter...
> >
> > Signed-off-by: softworkz <softworkz@hotmail.com>
> > ---
> >     fftools/opt_common: add missing include of avf/version.h
> >
> >     MSVC compiler complains without this include
> >
> > Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-
> ffstaging-27%2Fsoftworkz%2Fsubmit_version_include-v1
> > Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-
> ffstaging-27/softworkz/submit_version_include-v1
> > Pull-Request: https://github.com/ffstaging/FFmpeg/pull/27
> >
> >  fftools/opt_common.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/fftools/opt_common.c b/fftools/opt_common.c
> > index c303db4d09..5a5e35bd7f 100644
> > --- a/fftools/opt_common.c
> > +++ b/fftools/opt_common.c
> > @@ -51,6 +51,8 @@
> >  #include "libavdevice/avdevice.h"
> >  #include "libavdevice/version.h"
> >
> > +#include "libavfilter/version.h"
> > +
> >  #include "libswscale/swscale.h"
> >  #include "libswscale/version.h"
> >
> >
> > base-commit: d2d8b9b972ba2df6b2a2ebe29f5307cbb7a69c33
> 
> What does "complain" here mean? Compilation failure?
> It should already be included via
> opt_common.h->cmdutils.h->avfilter.h->lavfi/version.h. The latter
> inclusion relies on HAVE_AV_CONFIG_H to not be defined. It should only
> be defined for the libraries, not fftools, so if it is defined for you
> for this file your setup is wrong.

You are right. HAVE_AV_CONFIG_H is defined also for the tools binaries.
But this seems to be the only case where it causes an issue.

> That being said it is nevertheless good to include this and avfilter.h
> directly.

Looking at the generation tool, it seems to be quite a complex task
to shape things in a way that it can be compiled with VS...
I can't speak for the author of the tool, but I think when at least
some cases that can easily be avoided (to require workarounds) at
the ffmpeg side, then it would be a good thing.
In that specific case, the version.h files from ALL libs are included
just not from avfilter, so I think it would also add to clarity to 
include it directly.

Similar goes for the DCE issue. For me there's just more clarity when
those bits are guarded by #if blocks, but I don't want to open a 
discussion about that. Just thank you for the quick patch to resolve
it!

Kind regards,
softworkz
_______________________________________________
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] 6+ messages in thread

* [FFmpeg-devel] [PATCH v2] fftools/opt_common: add missing include of avf/version.h
  2022-05-13  9:46 [FFmpeg-devel] [PATCH] fftools/opt_common: add missing include of avf/version.h softworkz
  2022-05-13 13:32 ` Andreas Rheinhardt
@ 2022-05-14 11:18 ` softworkz
  2022-05-15 16:35   ` Andreas Rheinhardt
  2022-05-15 19:23   ` [FFmpeg-devel] [PATCH v3] fftools/opt_common: add includes of avf headers for clarity softworkz
  1 sibling, 2 replies; 6+ messages in thread
From: softworkz @ 2022-05-14 11:18 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: softworkz, Andreas Rheinhardt

From: softworkz <softworkz@hotmail.com>

required for PRINT_LIB_INFO(avfilter...

Signed-off-by: softworkz <softworkz@hotmail.com>
---
    fftools/opt_common: add missing include of avf/version.h
    
    MSVC compiler complains without this include
    
    v2: also include avfilter.h as suggested

Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-27%2Fsoftworkz%2Fsubmit_version_include-v2
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-27/softworkz/submit_version_include-v2
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/27

Range-diff vs v1:

 1:  db6ab867b4 ! 1:  f011be1049 fftools/opt_common: add missing include of avf/version.h
     @@ fftools/opt_common.c
       #include "libavdevice/avdevice.h"
       #include "libavdevice/version.h"
       
     ++#include "libavfilter/avfilter.h"
      +#include "libavfilter/version.h"
      +
       #include "libswscale/swscale.h"


 fftools/opt_common.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fftools/opt_common.c b/fftools/opt_common.c
index c303db4d09..55d86eeb19 100644
--- a/fftools/opt_common.c
+++ b/fftools/opt_common.c
@@ -51,6 +51,9 @@
 #include "libavdevice/avdevice.h"
 #include "libavdevice/version.h"
 
+#include "libavfilter/avfilter.h"
+#include "libavfilter/version.h"
+
 #include "libswscale/swscale.h"
 #include "libswscale/version.h"
 

base-commit: b90341d1d5585b7181873ac4d85a7c373eb3b2ae
-- 
ffmpeg-codebot
_______________________________________________
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] 6+ messages in thread

* Re: [FFmpeg-devel] [PATCH v2] fftools/opt_common: add missing include of avf/version.h
  2022-05-14 11:18 ` [FFmpeg-devel] [PATCH v2] " softworkz
@ 2022-05-15 16:35   ` Andreas Rheinhardt
  2022-05-15 19:23   ` [FFmpeg-devel] [PATCH v3] fftools/opt_common: add includes of avf headers for clarity softworkz
  1 sibling, 0 replies; 6+ messages in thread
From: Andreas Rheinhardt @ 2022-05-15 16:35 UTC (permalink / raw)
  To: softworkz, ffmpeg-devel; +Cc: Soft Works

softworkz:
> From: softworkz <softworkz@hotmail.com>
> 
> required for PRINT_LIB_INFO(avfilter...
> 
> Signed-off-by: softworkz <softworkz@hotmail.com>
> ---
>     fftools/opt_common: add missing include of avf/version.h
>     
>     MSVC compiler complains without this include
>     
>     v2: also include avfilter.h as suggested
> 
> Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-27%2Fsoftworkz%2Fsubmit_version_include-v2
> Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-27/softworkz/submit_version_include-v2
> Pull-Request: https://github.com/ffstaging/FFmpeg/pull/27
> 
> Range-diff vs v1:
> 
>  1:  db6ab867b4 ! 1:  f011be1049 fftools/opt_common: add missing include of avf/version.h
>      @@ fftools/opt_common.c
>        #include "libavdevice/avdevice.h"
>        #include "libavdevice/version.h"
>        
>      ++#include "libavfilter/avfilter.h"
>       +#include "libavfilter/version.h"
>       +
>        #include "libswscale/swscale.h"
> 
> 
>  fftools/opt_common.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/fftools/opt_common.c b/fftools/opt_common.c
> index c303db4d09..55d86eeb19 100644
> --- a/fftools/opt_common.c
> +++ b/fftools/opt_common.c
> @@ -51,6 +51,9 @@
>  #include "libavdevice/avdevice.h"
>  #include "libavdevice/version.h"
>  
> +#include "libavfilter/avfilter.h"
> +#include "libavfilter/version.h"
> +
>  #include "libswscale/swscale.h"
>  #include "libswscale/version.h"
>  
> 
> base-commit: b90341d1d5585b7181873ac4d85a7c373eb3b2ae

The commit message sounds as if this were a serious case of missing
include that hinders compilation, whereas it is more of a cosmetic fix.

- Andreas
_______________________________________________
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] 6+ messages in thread

* [FFmpeg-devel] [PATCH v3] fftools/opt_common: add includes of avf headers for clarity
  2022-05-14 11:18 ` [FFmpeg-devel] [PATCH v2] " softworkz
  2022-05-15 16:35   ` Andreas Rheinhardt
@ 2022-05-15 19:23   ` softworkz
  1 sibling, 0 replies; 6+ messages in thread
From: softworkz @ 2022-05-15 19:23 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: softworkz, Andreas Rheinhardt

From: softworkz <softworkz@hotmail.com>

Signed-off-by: softworkz <softworkz@hotmail.com>
---
    fftools/opt_common: add missing include of avf/version.h
    
    MSVC compiler complains without this include
    
    v2: also include avfilter.h as suggested
    v3: adjust commit message as suggested by Andreas

Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-27%2Fsoftworkz%2Fsubmit_version_include-v3
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-27/softworkz/submit_version_include-v3
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/27

Range-diff vs v2:

 1:  f011be1049 ! 1:  50b3db3466 fftools/opt_common: add missing include of avf/version.h
     @@ Metadata
      Author: softworkz <softworkz@hotmail.com>
      
       ## Commit message ##
     -    fftools/opt_common: add missing include of avf/version.h
     -
     -    required for PRINT_LIB_INFO(avfilter...
     +    fftools/opt_common: add includes of avf headers for clarity
      
          Signed-off-by: softworkz <softworkz@hotmail.com>
      


 fftools/opt_common.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/fftools/opt_common.c b/fftools/opt_common.c
index c303db4d09..55d86eeb19 100644
--- a/fftools/opt_common.c
+++ b/fftools/opt_common.c
@@ -51,6 +51,9 @@
 #include "libavdevice/avdevice.h"
 #include "libavdevice/version.h"
 
+#include "libavfilter/avfilter.h"
+#include "libavfilter/version.h"
+
 #include "libswscale/swscale.h"
 #include "libswscale/version.h"
 

base-commit: b90341d1d5585b7181873ac4d85a7c373eb3b2ae
-- 
ffmpeg-codebot
_______________________________________________
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] 6+ messages in thread

end of thread, other threads:[~2022-05-15 19:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13  9:46 [FFmpeg-devel] [PATCH] fftools/opt_common: add missing include of avf/version.h softworkz
2022-05-13 13:32 ` Andreas Rheinhardt
2022-05-13 23:51   ` Soft Works
2022-05-14 11:18 ` [FFmpeg-devel] [PATCH v2] " softworkz
2022-05-15 16:35   ` Andreas Rheinhardt
2022-05-15 19:23   ` [FFmpeg-devel] [PATCH v3] fftools/opt_common: add includes of avf headers for clarity softworkz

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