I see it is because of the below change in libavcodec/util.c,
- avctx->codec_id = codec->id;
+ if ((avctx->codec_type == CODEC_TYPE_UNKNOWN || avctx->codec_type
== codec->type) &&
+ avctx->codec_id == CODEC_ID_NONE) {
+ avctx->codec_type = codec->type;
+ avctx->codec_id = codec->id;
+ }
+ if(avctx->codec_id != codec->id || avctx->codec_type != codec->type){
+ av_log(avctx, AV_LOG_ERROR, "codec type or id mismatches\n");
+ goto free_and_end;
+ }
but I can't understand that in xmms2-0.7DrNo/src/plugins/avcodec/avcodec.c
data->codecctx = g_new0 (AVCodecContext, 1);
is initialized to zero. In avcodec_open() function it should go into
the first if clause. why not.
--
_______________________________________________
Xmms2-devel mailing list
[email protected]
http://lists.xmms.se/cgi-bin/mailman/listinfo/xmms2-devel