Commit e7dec52d authored by Rostislav Pehlivanov's avatar Rostislav Pehlivanov

matroskaenc: remove unofficial compliance on color information

When support for this was added the details weren't yet finalized.
This is no longer the case.
Fixes writing of mkv/webm files with HDR.
Reported-by: 's avatarKagami Hiiragi <kagami@genshiken.org>
Signed-off-by: 's avatarRostislav Pehlivanov <atomnuker@gmail.com>
Reviewed-by: 's avatarJames Almer <jamrial@gmail.com>
parent 0ba01875
......@@ -1248,11 +1248,9 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
uint32_t color_space = av_le2ne32(par->codec_tag);
put_ebml_binary(pb, MATROSKA_ID_VIDEOCOLORSPACE, &color_space, sizeof(color_space));
}
if (s->strict_std_compliance <= FF_COMPLIANCE_UNOFFICIAL) {
ret = mkv_write_video_color(pb, par, st);
if (ret < 0)
return ret;
}
ret = mkv_write_video_color(pb, par, st);
if (ret < 0)
return ret;
end_ebml_master(pb, subinfo);
break;
......
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