1 --- gegl-0.1.2/operations/external/ff-load.c.orig 2011-06-28 20:14:52.491649253 +0200
2 +++ gegl-0.1.2/operations/external/ff-load.c 2011-06-28 20:38:32.935030148 +0200
7 - case AVERROR_NUMEXPECTED:
8 + case AVERROR(EINVAL):
9 g_warning ("%s: Incorrect image filename syntax.\n"
10 "Use '%%d' to specify the image number:\n"
11 " for img1.jpg, img2.jpg, ..., use 'img%%d.jpg';\n"
13 case AVERROR_INVALIDDATA:
14 g_warning ("%s: Error while parsing header\n", filename);
17 + case AVERROR(EILSEQ):
18 g_warning ("%s: Unknown format\n", filename);
22 for (i = 0; i< p->ic->nb_streams; i++)
24 AVCodecContext *c = p->ic->streams[i]->codec;
25 - if (c->codec_type == CODEC_TYPE_VIDEO)
26 + if (c->codec_type == AVMEDIA_TYPE_VIDEO)
28 p->video_st = p->ic->streams[i];