[FFmpeg-cvslog] lavd/x11grab: change error code for unsupported visuals.

Nicolas George git at videolan.org
Thu Jul 17 20:39:33 CEST 2014


ffmpeg | branch: master | Nicolas George <george at nsup.org> | Tue Jul 15 16:08:18 2014 +0200| [36fbe3c789744ad866f292a942bfb3b5d8417e77] | committer: Nicolas George

lavd/x11grab: change error code for unsupported visuals.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=36fbe3c789744ad866f292a942bfb3b5d8417e77
---

 libavdevice/x11grab.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index eb75e62..3a4aaeb 100644
--- a/libavdevice/x11grab.c
+++ b/libavdevice/x11grab.c
@@ -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;
     }
 



More information about the ffmpeg-cvslog mailing list