Change #259844
| Category | ffmpeg |
| Changed by | zengshuang <zengshuang@xiaomi.com> |
| Changed at | Wed 04 Mar 2026 11:40:12 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 9d73d10c50957ed9deefbc3113136c97f5ab7f67 |
Comments
avformat,avcodec: use PRI format macros for uint32_t in log messages Use PRIu32/PRIX32 format specifiers instead of %d/%u/%X for uint32_t variables in av_log calls. On some platforms (e.g. NuttX), uint32_t is typedef'd as unsigned long rather than unsigned int, which triggers -Wformat warnings despite both types being 4 bytes. Using PRI macros is the portable way to match the actual underlying type of uint32_t. Signed-off-by: zengshuang <zengshuang@xiaomi.com>
Changed files
- libavcodec/mpegaudiodec_template.c
- libavformat/dump.c
- libavformat/flac_picture.c
- libavformat/mov.c
- libavformat/mov_chan.c
- libavformat/tls_mbedtls.c