OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6ba3d4
)
matroskaenc: ensure the written colorspace don't depend on host endianness
author
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 13 Jun 2011 23:53:40 +0000
(
01:53
+0200)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Mon, 13 Jun 2011 23:53:40 +0000
(
01:53
+0200)
libavformat/matroskaenc.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskaenc.c
b/libavformat/matroskaenc.c
index
50e931e
..
9e42019
100644
(file)
--- a/
libavformat/matroskaenc.c
+++ b/
libavformat/matroskaenc.c
@@
-615,8
+615,10
@@
static int mkv_write_tracks(AVFormatContext *s)
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);
+ if (codec->codec_id == CODEC_ID_RAWVIDEO) {
+ uint32_t color_space = av_le2ne32(codec->codec_tag);
+ put_ebml_binary(pb, MATROSKA_ID_VIDEOCOLORSPACE, &color_space, sizeof(color_space));
+ }
end_ebml_master(pb, subinfo);
break;