From 9e95681f3b7c0e092651cdba71d303d99ee72522 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Fri, 29 Jul 2022 08:46:57 -0400 Subject: [PATCH] TT#14008 fix typo PRIx64 requires the leading % Fix-up for: I3d43b85dc3140155a61b1cf2269cda166ad88e9a Warned-by: Coverity Change-Id: I57db760ecf8d0c96fbbbb411f474b13b539df495 --- lib/fix_frame_channel_layout-01.h | 2 +- lib/fix_frame_channel_layout-02.h | 2 +- lib/fix_frame_channel_layout-03.h | 2 +- lib/fix_frame_channel_layout-04.h | 2 +- lib/fix_frame_channel_layout-05.h | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/fix_frame_channel_layout-01.h b/lib/fix_frame_channel_layout-01.h index c5b11c78a..cf3a32e0a 100644 --- a/lib/fix_frame_channel_layout-01.h +++ b/lib/fix_frame_channel_layout-01.h @@ -28,7 +28,7 @@ #define CH_LAYOUT_EXTRACT_MASK(a,b) av_channel_layout_extract_channel(a,b) #define CH_LAYOUT_MASK(a) (a) #define CH_LAYOUT_FROM_MASK(a,b) *(a) = (b) -#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x" PRIx64, a) +#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x%" PRIx64, a) #endif INLINE void fix_frame_channel_layout(AVFrame *frame) { diff --git a/lib/fix_frame_channel_layout-02.h b/lib/fix_frame_channel_layout-02.h index 229957188..9511460c6 100644 --- a/lib/fix_frame_channel_layout-02.h +++ b/lib/fix_frame_channel_layout-02.h @@ -13,7 +13,7 @@ #define CH_LAYOUT_EXTRACT_MASK(a,b) av_channel_layout_extract_channel(a,b) #define CH_LAYOUT_MASK(a) (a) #define CH_LAYOUT_FROM_MASK(a,b) *(a) = (b) -#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x" PRIx64, a) +#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x%" PRIx64, a) INLINE void fix_frame_channel_layout(AVFrame *frame) { if (frame->channel_layout) { diff --git a/lib/fix_frame_channel_layout-03.h b/lib/fix_frame_channel_layout-03.h index 1e7940009..7bd248c62 100644 --- a/lib/fix_frame_channel_layout-03.h +++ b/lib/fix_frame_channel_layout-03.h @@ -13,7 +13,7 @@ #define CH_LAYOUT_EXTRACT_MASK(a,b) av_channel_layout_extract_channel(a,b) #define CH_LAYOUT_MASK(a) (a) #define CH_LAYOUT_FROM_MASK(a,b) *(a) = (b) -#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x" PRIx64, a) +#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x%" PRIx64, a) INLINE void fix_frame_channel_layout(AVFrame *frame) { if (frame->channel_layout) { diff --git a/lib/fix_frame_channel_layout-04.h b/lib/fix_frame_channel_layout-04.h index 3850d46b3..b016bf7b8 100644 --- a/lib/fix_frame_channel_layout-04.h +++ b/lib/fix_frame_channel_layout-04.h @@ -13,7 +13,7 @@ #define CH_LAYOUT_EXTRACT_MASK(a,b) av_channel_layout_extract_channel(a,b) #define CH_LAYOUT_MASK(a) (a) #define CH_LAYOUT_FROM_MASK(a,b) *(a) = (b) -#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x" PRIx64, a) +#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x%" PRIx64, a) INLINE void fix_frame_channel_layout(AVFrame *frame) { if (frame->channel_layout) diff --git a/lib/fix_frame_channel_layout-05.h b/lib/fix_frame_channel_layout-05.h index b3f6a91d8..0025e7891 100644 --- a/lib/fix_frame_channel_layout-05.h +++ b/lib/fix_frame_channel_layout-05.h @@ -13,7 +13,7 @@ #define CH_LAYOUT_EXTRACT_MASK(a,b) av_channel_layout_extract_channel(a,b) #define CH_LAYOUT_MASK(a) (a) #define CH_LAYOUT_FROM_MASK(a,b) *(a) = (b) -#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x" PRIx64, a) +#define CH_LAYOUT_PRINT(a,b) snprintf(b, sizeof(b), "0x%" PRIx64, a) INLINE void fix_frame_channel_layout(AVFrame *frame) { if (frame->channel_layout)