summaryrefslogtreecommitdiff
blob: d6153e6a9dfe56d8b5eddb9a004576e4ded12d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Index: gpac/modules/ffmpeg_in/ffmpeg_demux.c
===================================================================
--- gpac.orig/modules/ffmpeg_in/ffmpeg_demux.c
+++ gpac/modules/ffmpeg_in/ffmpeg_demux.c
@@ -531,10 +531,10 @@ static GF_Err FFD_ConnectService(GF_Inpu
 
 	switch (i) {
 	case 0: e = GF_OK; break;
-	case AVERROR_IO: e = GF_URL_ERROR; goto err_exit;
-	case AVERROR_INVALIDDATA: e = GF_NON_COMPLIANT_BITSTREAM; goto err_exit;
-	case AVERROR_NOMEM: e = GF_OUT_OF_MEM; goto err_exit;
-	case AVERROR_NOFMT: e = GF_NOT_SUPPORTED; goto err_exit;
+	case AVERROR(EIO): e = GF_URL_ERROR; goto err_exit;
+	case AVERROR(EINVAL): e = GF_NON_COMPLIANT_BITSTREAM; goto err_exit;
+	case AVERROR(ENOMEM): e = GF_OUT_OF_MEM; goto err_exit;
+	case AVERROR(EILSEQ): e = GF_NOT_SUPPORTED; goto err_exit;
 	default: e = GF_SERVICE_ERROR; goto err_exit;
 	}