Commit 36fbe3c7 authored by Nicolas George's avatar Nicolas George

lavd/x11grab: change error code for unsupported visuals.

parent a65c0a3f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment