History

Return AVERROR(EINVAL) rather than -1 in case of invalid values.

Originally committed as revision 25274 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit ab3efd01 parent 448ce921 file · +1 −1Browse files

Showing the changes to libavfilter/vsrc_nullsrc.c (1 of 1 file). Show all

Unified · Split

libavfilter/vsrc_nullsrc.c+1−1
@@ -39,7 +39,7 @@ static int init(AVFilterContext *ctx, const char *args, void *opaque) · 38 unmodified lines
3939
4040 if (priv->w <= 0 || priv->h <= 0) {
4141 av_log(ctx, AV_LOG_ERROR, "Non-positive size values are not acceptable.\n");
42− return -1;
42+ return AVERROR(EINVAL);
4343 }
4444
4545 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t