Mercurial > libavformat.hg
comparison nut.c @ 282:a864d92bf6b8 libavformat
10l
author | alex |
---|---|
date | Wed, 15 Oct 2003 15:21:46 +0000 |
parents | a313e1080322 |
children | 137b4ce31b0f |
comparison
equal
deleted
inserted
replaced
281:ee009afcc2a1 | 282:a864d92bf6b8 |
---|---|
249 put_bi(bc, codec->codec_tag); | 249 put_bi(bc, codec->codec_tag); |
250 else if (codec->codec_type == CODEC_TYPE_VIDEO) | 250 else if (codec->codec_type == CODEC_TYPE_VIDEO) |
251 { | 251 { |
252 int tmp = codec_get_bmp_tag(codec->codec_id); | 252 int tmp = codec_get_bmp_tag(codec->codec_id); |
253 put_bi(bc, tmp); | 253 put_bi(bc, tmp); |
254 } | |
255 else if (codec->codec_type == CODEC_TYPE_AUDIO) | |
256 { | |
257 int tmp = codec_get_wav_tag(codec->codec_id); | |
258 put_bi(bc, tmp); | |
259 } | |
260 | |
261 if (codec->codec_type == CODEC_TYPE_VIDEO) | |
262 { | |
254 nom = codec->frame_rate; | 263 nom = codec->frame_rate; |
255 denom = codec->frame_rate_base; | 264 denom = codec->frame_rate_base; |
256 } | 265 } |
257 else if (codec->codec_type == CODEC_TYPE_AUDIO) | 266 else |
258 { | 267 { |
259 int tmp = codec_get_wav_tag(codec->codec_id); | |
260 put_bi(bc, tmp); | |
261 nom = codec->sample_rate/8; | 268 nom = codec->sample_rate/8; |
262 denom = 8; | 269 denom = 8; |
263 } | 270 } |
264 put_v(bc, codec->bit_rate); | 271 put_v(bc, codec->bit_rate); |
265 put_v(bc, 0); /* no language code */ | 272 put_v(bc, 0); /* no language code */ |