]> git.sesse.net Git - ffmpeg/commitdiff
lavd/x11grab: change error code for unsupported visuals.
authorNicolas George <george@nsup.org>
Tue, 15 Jul 2014 14:08:18 +0000 (16:08 +0200)
committerNicolas George <george@nsup.org>
Thu, 17 Jul 2014 16:11:55 +0000 (18:11 +0200)
libavdevice/x11grab.c

index eb75e62bd7fd18d2e9868d8c880e483ac0e943ca..3a4aaeb0d32b16db7d342795ddbc1e3b9c748761 100644 (file)
@@ -287,7 +287,7 @@ x11grab_read_header(AVFormatContext *s1)
         } else {
             av_log(s1, AV_LOG_ERROR, "RGB ordering at image depth %i not supported ... aborting\n", image->bits_per_pixel);
             av_log(s1, AV_LOG_ERROR, "color masks: r 0x%.6lx g 0x%.6lx b 0x%.6lx\n", image->red_mask, image->green_mask, image->blue_mask);
-            ret = AVERROR(EIO);
+            ret = AVERROR_PATCHWELCOME;
             goto out;
         }
         break;
@@ -303,7 +303,7 @@ x11grab_read_header(AVFormatContext *s1)
         } else {
             av_log(s1, AV_LOG_ERROR,"rgb ordering at image depth %i not supported ... aborting\n", image->bits_per_pixel);
             av_log(s1, AV_LOG_ERROR, "color masks: r 0x%.6lx g 0x%.6lx b 0x%.6lx\n", image->red_mask, image->green_mask, image->blue_mask);
-            ret = AVERROR(EIO);
+            ret = AVERROR_PATCHWELCOME;
             goto out;
         }
         break;
@@ -312,7 +312,7 @@ x11grab_read_header(AVFormatContext *s1)
         break;
     default:
         av_log(s1, AV_LOG_ERROR, "image depth %i not supported ... aborting\n", image->bits_per_pixel);
-        ret = AVERROR(EINVAL);
+        ret = AVERROR_PATCHWELCOME;
         goto out;
     }