You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02: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:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user