]> granicus.if.org Git - libvpx/commitdiff
Remove fatal() call in webmdec.c
authorVignesh Venkatasubramanian <vigneshv@google.com>
Mon, 14 Apr 2014 21:21:47 +0000 (14:21 -0700)
committerVignesh Venkatasubramanian <vigneshv@google.com>
Mon, 14 Apr 2014 21:21:47 +0000 (14:21 -0700)
Remove call to fatal() in webmdec.c so that it does not depend on
tools_common.c for compilation.

Change-Id: I3eec483afe6fae72436993c72b26d61d14a7f2bf

webmdec.c

index 7cacdf922e89f89b87bc81f7689e110fa93a26f0..a8e220c4afe3f2acb1be4f77184d4e5752195a65 100644 (file)
--- a/webmdec.c
+++ b/webmdec.c
@@ -86,7 +86,8 @@ int file_is_webm(struct WebmInputContext *webm_ctx,
   } else if (codec_id == NESTEGG_CODEC_VP9) {
     vpx_ctx->fourcc = VP9_FOURCC;
   } else {
-    fatal("Not VPx video, quitting.\n");
+    fprintf(stderr, "Not VPx video, quitting.\n");
+    goto fail;
   }
 
   webm_ctx->video_track = i;