summaryrefslogtreecommitdiff
path: root/wcap/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'wcap/main.c')
-rw-r--r--wcap/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/wcap/main.c b/wcap/main.c
index 29bb9c30..16d37f00 100644
--- a/wcap/main.c
+++ b/wcap/main.c
@@ -251,6 +251,10 @@ int main(int argc, char *argv[])
}
decoder = wcap_decoder_create(argv[1]);
+ if (decoder == NULL) {
+ fprintf(stderr, "Creating wcap decoder failed\n");
+ exit(EXIT_FAILURE);
+ }
if (yuv4mpeg2 && isatty(1)) {
fprintf(stderr, "Not dumping yuv4mpeg2 data to terminal. Pipe output to a file or a process.\n");