diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2011-06-13 18:37:32 +0200 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2011-06-13 18:37:32 +0200 |
commit | 7ebaa967a2c5b038023409179ca3c56f5b4f4ed3 (patch) | |
tree | 8ce20dbd5a6796c8214290a3c96e9b19bea7baff /libavformat | |
parent | eb8de45c3c55721f0fc02cefcf1d08980b7ab67d (diff) | |
download | ffmpeg-7ebaa967a2c5b038023409179ca3c56f5b4f4ed3.tar.gz |
matroskaenc: write colourspace element for rawvideo tracks
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskaenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 9901dc0b26..50e931e5c2 100644 --- a/libavformat/matroskaenc.c +++ b/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; |