projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e333170
)
don't complain about codec type/id mismatche for attachment streams
author
Aurelien Jacobs
<aurel@gnuage.org>
Wed, 12 Jan 2011 00:33:22 +0000
(
00:33
+0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Wed, 12 Jan 2011 00:33:22 +0000
(
00:33
+0000)
Originally committed as revision 26316 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/utils.c
patch
|
blob
|
history
diff --git
a/libavcodec/utils.c
b/libavcodec/utils.c
index
8cc9299
..
86595a2
100644
(file)
--- a/
libavcodec/utils.c
+++ b/
libavcodec/utils.c
@@
-524,7
+524,8
@@
int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)
avctx->codec_type = codec->type;
avctx->codec_id = codec->id;
}
- if(avctx->codec_id != codec->id || avctx->codec_type != codec->type){
+ if (avctx->codec_id != codec->id || (avctx->codec_type != codec->type
+ && avctx->codec_type != AVMEDIA_TYPE_ATTACHMENT)) {
av_log(avctx, AV_LOG_ERROR, "codec type or id mismatches\n");
goto free_and_end;
}