mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-28 01:31:00 +00:00
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:
parent
0ba0187535
commit
e7dec52d4d
@ -1248,11 +1248,9 @@ static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv,
|
|||||||
uint32_t color_space = av_le2ne32(par->codec_tag);
|
uint32_t color_space = av_le2ne32(par->codec_tag);
|
||||||
put_ebml_binary(pb, MATROSKA_ID_VIDEOCOLORSPACE, &color_space, sizeof(color_space));
|
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);
|
||||||
ret = mkv_write_video_color(pb, par, st);
|
if (ret < 0)
|
||||||
if (ret < 0)
|
return ret;
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
end_ebml_master(pb, subinfo);
|
end_ebml_master(pb, subinfo);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user