1 --- deadbeef-0.5.1/plugins/ffmpeg/ffmpeg.c~ 2011-05-22 15:58:53.000000000 +0200
2 +++ deadbeef-0.5.1/plugins/ffmpeg/ffmpeg.c 2011-06-30 10:24:44.386376024 +0200
4 for (i = 0; i < info->fctx->nb_streams; i++)
6 info->ctx = info->fctx->streams[i]->codec;
7 - if (info->ctx->codec_type == CODEC_TYPE_AUDIO)
8 + if (info->ctx->codec_type == AVMEDIA_TYPE_AUDIO)
10 info->codec = avcodec_find_decoder (info->ctx->codec_id);
11 if (info->codec != NULL) {
13 for (i = 0; i < fctx->nb_streams; i++)
15 ctx = fctx->streams[i]->codec;
16 - if (ctx->codec_type == CODEC_TYPE_AUDIO)
17 + if (ctx->codec_type == AVMEDIA_TYPE_AUDIO)
19 codec = avcodec_find_decoder(ctx->codec_id);
20 if (codec != NULL && !strcasecmp (codec->name, "alac")) { // only open alac streams
25 - av_register_protocol (&vfswrapper);
26 + av_register_protocol2 (&vfswrapper, sizeof(&vfswrapper));
31 for (i = 0; i < fctx->nb_streams; i++)
33 ctx = fctx->streams[i]->codec;
34 - if (ctx->codec_type == CODEC_TYPE_AUDIO)
35 + if (ctx->codec_type == AVMEDIA_TYPE_AUDIO)
37 codec = avcodec_find_decoder(ctx->codec_id);