diff mbox series

[FFmpeg-devel,v2] avformat/dvdvideodec: add explicit inttypes.h include

Message ID 20240325212102.1483133-1-marth64@proxyid.net
State Accepted
Commit 9df11820650b1d93f6a49519aaa51afb5cc17086
Headers show
Series [FFmpeg-devel,v2] avformat/dvdvideodec: add explicit inttypes.h include | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marth64 March 25, 2024, 9:21 p.m. UTC
Since log statements printing int64 were made portable in
4464b7eeb194e98ac115f18d2b6be67361407c8a, let us include
inttypes.h explicitly (as it is unclear where PRId64 and
such are coming from now).

Reported-by: Traneptora
Signed-off-by: Marth64 <marth64@proxyid.net>
---
 libavformat/dvdvideodec.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stefano Sabatini March 26, 2024, 3:35 p.m. UTC | #1
On date Monday 2024-03-25 16:21:02 -0500, Marth64 wrote:
> Since log statements printing int64 were made portable in
> 4464b7eeb194e98ac115f18d2b6be67361407c8a, let us include
> inttypes.h explicitly (as it is unclear where PRId64 and
> such are coming from now).
> 
> Reported-by: Traneptora
> Signed-off-by: Marth64 <marth64@proxyid.net>
> ---
>  libavformat/dvdvideodec.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c
> index 761ac97ec6..4959edab5c 100644
> --- a/libavformat/dvdvideodec.c
> +++ b/libavformat/dvdvideodec.c
> @@ -30,6 +30,8 @@
>   * 7) Close the dvdnav VM, and free dvdread's IFO structures
>   */
>  
> +#include <inttypes.h>
> +
>  #include <dvdnav/dvdnav.h>
>  #include <dvdread/dvd_reader.h>
>  #include <dvdread/ifo_read.h>
> -- 
> 2.34.1

LGTM, will apply.
Marth64 March 26, 2024, 3:56 p.m. UTC | #2
Was already applied. Thanks Stefano and Leo!
diff mbox series

Patch

diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c
index 761ac97ec6..4959edab5c 100644
--- a/libavformat/dvdvideodec.c
+++ b/libavformat/dvdvideodec.c
@@ -30,6 +30,8 @@ 
  * 7) Close the dvdnav VM, and free dvdread's IFO structures
  */
 
+#include <inttypes.h>
+
 #include <dvdnav/dvdnav.h>
 #include <dvdread/dvd_reader.h>
 #include <dvdread/ifo_read.h>