matroskaenc: write colourspace element for rawvideo tracks

pull/2/head
Aurelien Jacobs 14 years ago
parent eb8de45c3c
commit 7ebaa967a2
  1. 3
      libavformat/matroskaenc.c

@ -614,6 +614,9 @@ static int mkv_write_tracks(AVFormatContext *s)
put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYHEIGHT, codec->height);
put_ebml_uint(pb, MATROSKA_ID_VIDEODISPLAYUNIT, 3);
}
if (codec->codec_id == CODEC_ID_RAWVIDEO)
put_ebml_binary(pb, MATROSKA_ID_VIDEOCOLORSPACE, &codec->codec_tag, 4);
end_ebml_master(pb, subinfo);
break;

Loading…
Cancel
Save