Commit cacb4763 authored by Mark Thompson's avatar Mark Thompson

Merge commit '1d12a545'

* commit '1d12a545':
  cbs: Add an explicit type for coded bitstream unit types

Mostly already present from 6734eef6, two
minor message changes are merged.
Merged-by: 's avatarMark Thompson <sw@jkqxz.net>
parents d28eb0e3 1d12a545
......@@ -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 %"PRIx32".\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 %02"PRIu32".\n", unit->type);
"code %02"PRIx32".\n", unit->type);
return AVERROR_PATCHWELCOME;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment