[FFmpeg-cvslog] matroskaenc: write colourspace element for rawvideo tracks
Aurelien Jacobs
git at videolan.org
Mon Jun 13 18:37:12 CEST 2011
ffmpeg | branch: master | Aurelien Jacobs <aurel at gnuage.org> | Mon Jun 13 18:37:32 2011 +0200| [7ebaa967a2c5b038023409179ca3c56f5b4f4ed3] | committer: Aurelien Jacobs
matroskaenc: write colourspace element for rawvideo tracks
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7ebaa967a2c5b038023409179ca3c56f5b4f4ed3
---
libavformat/matroskaenc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 9901dc0..50e931e 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;
More information about the ffmpeg-cvslog
mailing list