diff options
author | Philip Gladstone <philipjsg@users.sourceforge.net> | 2002-04-08 21:31:24 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-04-08 21:31:24 +0000 |
commit | 502d105f9664598d0535eed6be2dc8a5900a6f1e (patch) | |
tree | d3d97f5937f93cf41b13dffb3f4e9331074279ae /libav | |
parent | bc657ac31dfd2458d52736e36af03615d8c1664b (diff) | |
download | ffmpeg-502d105f9664598d0535eed6be2dc8a5900a6f1e.tar.gz |
* patch by Philip Gladstone
Originally committed as revision 390 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav')
-rw-r--r-- | libav/avienc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libav/avienc.c b/libav/avienc.c index e6673cc47a..e1944e8c11 100644 --- a/libav/avienc.c +++ b/libav/avienc.c @@ -94,7 +94,7 @@ unsigned int codec_get_bmp_tag(int id) } /* BITMAPINFOHEADER header */ -void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc) +void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc, CodecTag *tags) { put_le32(pb, 40); /* size */ put_le32(pb, enc->width); @@ -102,7 +102,7 @@ void put_bmp_header(ByteIOContext *pb, AVCodecContext *enc) put_le16(pb, 1); /* planes */ put_le16(pb, 24); /* depth */ /* compression type */ - put_le32(pb, codec_get_bmp_tag(enc->codec_id)); + put_le32(pb, codec_get_tag(tags, enc->codec_id)); put_le32(pb, enc->width * enc->height * 3); put_le32(pb, 0); put_le32(pb, 0); @@ -251,7 +251,7 @@ static int avi_write_header(AVFormatContext *s) strf = start_tag(pb, "strf"); switch(stream->codec_type) { case CODEC_TYPE_VIDEO: - put_bmp_header(pb, stream); + put_bmp_header(pb, stream, codec_bmp_tags); break; case CODEC_TYPE_AUDIO: if (put_wav_header(pb, stream) < 0) { |