Opened 3 years ago

Closed 3 years ago

#4467 closed defect (fixed)

Silence -Wformat warning in libavformat/mov.c

Reported by: jeremyhu Owned by:
Priority: minor Component: avformat
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


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.

Change History (2)

comment:1 Changed 3 years ago by cehoyos

  • Version changed from unspecified to git-master

Does replacing %"PRIu8" with %d help?

comment:2 Changed 3 years ago by Timothy_Gu

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.