#4467: Silence -Wformat warning in libavformat/mov.c
---------------------------------------+----------------------------------
Reporter: jeremyhu | Owner:
Type: defect | Status: new
Priority: minor | Component: avformat
Version: unspecified | Keywords:
Blocked By: | Blocking:
Reproduced by developer: 0 | Analyzed by developer: 0
---------------------------------------+----------------------------------
You should probably cast that to uint8_t.
{{{
src/libavformat/mov.c:1230:59: warning: format specifies type 'unsigned
char' but the argument has type 'enum AVColorRange' [-Wformat]
av_dlog(c, "color_range: %"PRIu8"\n",
codec->color_range);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
src/libavutil/log.h:322:71: note: expanded from macro 'av_dlog'
# define av_dlog(pctx, ...) do { if (0) av_log(pctx, AV_LOG_DEBUG,
__VA_ARGS__); } while (0)
^
1 warning generated.
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4467>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac