diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-11-09 01:04:02 +0000 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2018-02-20 22:04:12 +0000 |
commit | 1d12a545ce828eaf4fb37295400008ea37635ab8 (patch) | |
tree | cd46b169af902f8fa59d8e9d315af7f2999d7c7c /libavcodec/cbs_mpeg2.c | |
parent | 2651352988212531038326c44754ece1728c4a3b (diff) | |
download | ffmpeg-1d12a545ce828eaf4fb37295400008ea37635ab8.tar.gz |
cbs: Add an explicit type for coded bitstream unit types
Also fix conversion specifiers used for the unit type.
Diffstat (limited to 'libavcodec/cbs_mpeg2.c')
-rw-r--r-- | libavcodec/cbs_mpeg2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cbs_mpeg2.c b/libavcodec/cbs_mpeg2.c index 54875c2e1c..5956f39335 100644 --- a/libavcodec/cbs_mpeg2.c +++ b/libavcodec/cbs_mpeg2.c @@ -220,7 +220,7 @@ static int cbs_mpeg2_read_unit(CodedBitstreamContext *ctx, START(0xb8, MPEG2RawGroupOfPicturesHeader, group_of_pictures_header); #undef START default: - av_log(ctx->log_ctx, AV_LOG_ERROR, "Unknown start code %02x.\n", + av_log(ctx->log_ctx, AV_LOG_ERROR, "Unknown start code %02"PRIx32".\n", unit->type); return AVERROR_INVALIDDATA; } @@ -248,7 +248,7 @@ static int cbs_mpeg2_write_header(CodedBitstreamContext *ctx, #undef START default: av_log(ctx->log_ctx, AV_LOG_ERROR, "Write unimplemented for start " - "code %02x.\n", unit->type); + "code %02"PRIx32".\n", unit->type); return AVERROR_PATCHWELCOME; } |