mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-01 18:21:04 +00:00
vp9: read reserved bit in RGB header.
This commit is contained in:
parent
48f641a18b
commit
ecd9f57edc
@ -503,6 +503,10 @@ static enum AVPixelFormat read_colorspace_details(AVCodecContext *ctx)
|
|||||||
s->ss_h = s->ss_v = 1;
|
s->ss_h = s->ss_v = 1;
|
||||||
res = pix_fmt_rgb[bits];
|
res = pix_fmt_rgb[bits];
|
||||||
ctx->color_range = AVCOL_RANGE_JPEG;
|
ctx->color_range = AVCOL_RANGE_JPEG;
|
||||||
|
if (get_bits1(&s->gb)) {
|
||||||
|
av_log(ctx, AV_LOG_ERROR, "Reserved bit set in RGB\n");
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
av_log(ctx, AV_LOG_ERROR, "RGB not supported in profile %d\n",
|
av_log(ctx, AV_LOG_ERROR, "RGB not supported in profile %d\n",
|
||||||
ctx->profile);
|
ctx->profile);
|
||||||
|
Loading…
Reference in New Issue
Block a user