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: Kagami Hiiragi <kagami@genshiken.org>
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
This commit is contained in:
Rostislav Pehlivanov 2017-01-15 13:56:53 +00:00
parent 0ba0187535
commit e7dec52d4d
1 changed files with 3 additions and 5 deletions

View File

@ -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;