diff options
author | Peter Ross <pross@xvid.org> | 2010-12-29 10:43:16 +0000 |
---|---|---|
committer | Peter Ross <pross@xvid.org> | 2010-12-29 10:43:16 +0000 |
commit | 0af1671e5318837e461cd3cb662832c216486fbb (patch) | |
tree | b7879e53e67865b9111093cf9f1af0ca50272f2e /libavformat/wtv.c | |
parent | 945df9703b831cc06b420ffd010ce56945740a74 (diff) | |
download | ffmpeg-0af1671e5318837e461cd3cb662832c216486fbb.tar.gz |
wtv: only warn about unknown subtype, if it actually unknown
Originally committed as revision 26123 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r-- | libavformat/wtv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c index 1e9b055aa1..474179df98 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -244,9 +244,9 @@ static AVStream * parse_media_type(AVFormatContext *s, int sid, av_log(s, AV_LOG_WARNING, "MPEG1WAVEFORMATEX underflow\n"); } else { st->codec->codec_id = ff_codec_guid_get_id(audio_guids, subtype); + if (st->codec->codec_id == CODEC_ID_NONE) + av_log(s, AV_LOG_WARNING, "unknown subtype:"PRI_GUID"\n", ARG_GUID(subtype)); } - if (st->codec->codec_id == CODEC_ID_NONE) - av_log(s, AV_LOG_WARNING, "unknown subtype:"PRI_GUID"\n", ARG_GUID(subtype)); return st; } else if (!ff_guidcmp(mediatype, mediatype_video)) { st = new_stream(s, sid, AVMEDIA_TYPE_VIDEO); |