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

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
39 39
40 if (priv->w <= 0 || priv->h <= 0) {40 if (priv->w <= 0 || priv->h <= 0) {
41 av_log(ctx, AV_LOG_ERROR, "Non-positive size values are not acceptable.\n");41 av_log(ctx, AV_LOG_ERROR, "Non-positive size values are not acceptable.\n");
42 return -1;42 return AVERROR(EINVAL);
43 }43 }
44 44
45 return 0;45 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