diff options
author | Fred Rothganger <rothgang@uiuc.edu> | 2003-03-16 21:03:20 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-03-16 21:03:20 +0000 |
commit | e8750b00764f5148cd93f466f9e832eb8589aba7 (patch) | |
tree | 57e0854dac6635b5a89f4cdfe035f12282352ca6 /libavformat/avienc.c | |
parent | b536d0aad2750d3a5f24520fccf1e48a46cad53b (diff) | |
download | ffmpeg-e8750b00764f5148cd93f466f9e832eb8589aba7.tar.gz |
rawvideo patch by (Fred Rothganger <rothgang at uiuc dot edu>)
Originally committed as revision 1687 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avienc.c')
-rw-r--r-- | libavformat/avienc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c index f885d657a9..8617b68373 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -89,6 +89,7 @@ const CodecTag codec_bmp_tags[] = { { CODEC_ID_HUFFYUV, MKTAG('h', 'f', 'y', 'u') }, { CODEC_ID_CYUV, MKTAG('C', 'Y', 'U', 'V') }, { CODEC_ID_CYUV, MKTAG('c', 'y', 'u', 'v') }, + { CODEC_ID_RAWVIDEO, MKTAG('Y', '4', '2', '2') }, { 0, 0 }, }; @@ -249,12 +250,17 @@ static int avi_write_header(AVFormatContext *s) stream = &s->streams[i]->codec; + /* FourCC should really be set by the codec itself */ + if (! stream->codec_tag) { + stream->codec_tag = codec_get_bmp_tag(stream->codec_id); + } + /* stream generic header */ strh = start_tag(pb, "strh"); switch(stream->codec_type) { case CODEC_TYPE_VIDEO: put_tag(pb, "vids"); - put_le32(pb, codec_get_bmp_tag(stream->codec_id)); + put_le32(pb, stream->codec_tag); put_le32(pb, 0); /* flags */ put_le16(pb, 0); /* priority */ put_le16(pb, 0); /* language */ |