comparison avienc.c @ 2227:8cf17fde9a1c libavformat

remove redundant codec_get_bmp_tag() call in avi_write_header() it is incorrect and av_write_header() already does the right thing
author mru
date Sun, 08 Jul 2007 01:41:06 +0000
parents ba58d49d4685
children d52c718e83f9
comparison
equal deleted inserted replaced
2226:c2ad35fbbd30 2227:8cf17fde9a1c
195 list2 = start_tag(pb, "LIST"); 195 list2 = start_tag(pb, "LIST");
196 put_tag(pb, "strl"); 196 put_tag(pb, "strl");
197 197
198 stream = s->streams[i]->codec; 198 stream = s->streams[i]->codec;
199 199
200 /* FourCC should really be set by the codec itself */
201 if (! stream->codec_tag) {
202 stream->codec_tag = codec_get_bmp_tag(stream->codec_id);
203 }
204
205 /* stream generic header */ 200 /* stream generic header */
206 strh = start_tag(pb, "strh"); 201 strh = start_tag(pb, "strh");
207 switch(stream->codec_type) { 202 switch(stream->codec_type) {
208 case CODEC_TYPE_VIDEO: put_tag(pb, "vids"); break; 203 case CODEC_TYPE_VIDEO: put_tag(pb, "vids"); break;
209 case CODEC_TYPE_AUDIO: put_tag(pb, "auds"); break; 204 case CODEC_TYPE_AUDIO: put_tag(pb, "auds"); break;