Browse Source

Match the behaviour betwen the bmp and wav codec tag lookups

Originally committed as revision 10380 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
David Conrad 18 years ago
parent
commit
dc4a9f6737
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavformat/matroskaenc.c

+ 5
- 0
libavformat/matroskaenc.c View File

@@ -483,10 +483,15 @@ static int mkv_write_codecprivate(ByteIOContext *pb, AVCodecContext *codec, int
} else if (codec->codec_type == CODEC_TYPE_VIDEO) { } else if (codec->codec_type == CODEC_TYPE_VIDEO) {
if (!codec->codec_tag) if (!codec->codec_tag)
codec->codec_tag = codec_get_tag(codec_bmp_tags, codec->codec_id); codec->codec_tag = codec_get_tag(codec_bmp_tags, codec->codec_id);
if (!codec->codec_tag) {
av_log(codec, AV_LOG_ERROR, "no bmp codec id found");
ret = -1;
}


put_bmp_header(&dyn_cp, codec, codec_bmp_tags, 0); put_bmp_header(&dyn_cp, codec, codec_bmp_tags, 0);


} else if (codec->codec_type == CODEC_TYPE_AUDIO) { } else if (codec->codec_type == CODEC_TYPE_AUDIO) {
if (!codec->codec_tag)
codec->codec_tag = codec_get_tag(codec_wav_tags, codec->codec_id); codec->codec_tag = codec_get_tag(codec_wav_tags, codec->codec_id);
if (!codec->codec_tag) { if (!codec->codec_tag) {
av_log(codec, AV_LOG_ERROR, "no wav codec id found"); av_log(codec, AV_LOG_ERROR, "no wav codec id found");


Loading…
Cancel
Save