--- gegl-0.1.2/operations/external/ff-load.c.orig 2011-06-28 20:14:52.491649253 +0200 +++ gegl-0.1.2/operations/external/ff-load.c 2011-06-28 20:38:32.935030148 +0200 @@ -69,7 +69,7 @@ { switch (err) { - case AVERROR_NUMEXPECTED: + case AVERROR(EINVAL): g_warning ("%s: Incorrect image filename syntax.\n" "Use '%%d' to specify the image number:\n" " for img1.jpg, img2.jpg, ..., use 'img%%d.jpg';\n" @@ -79,7 +79,7 @@ case AVERROR_INVALIDDATA: g_warning ("%s: Error while parsing header\n", filename); break; - case AVERROR_NOFMT: + case AVERROR(EILSEQ): g_warning ("%s: Unknown format\n", filename); break; default: @@ -278,7 +278,7 @@ for (i = 0; i< p->ic->nb_streams; i++) { AVCodecContext *c = p->ic->streams[i]->codec; - if (c->codec_type == CODEC_TYPE_VIDEO) + if (c->codec_type == AVMEDIA_TYPE_VIDEO) { p->video_st = p->ic->streams[i]; p->video_stream = i;