shithub: libvpx

Download patch

ref: f1a5d42c65e848280c04e0d9c6159f17d5a61579
parent: 67b5054035b0784170a2c7b8376aff3394339e2b
parent: 401c8965310a917ca77f5450816f23eb21559b68
author: Jerome Jiang <jianj@google.com>
date: Thu May 10 19:19:26 EDT 2018

Merge "Remove extra line in warnings in ivfdec.c"

--- a/ivfdec.c
+++ b/ivfdec.c
@@ -76,12 +76,12 @@
   size_t frame_size = 0;
 
   if (fread(raw_header, IVF_FRAME_HDR_SZ, 1, infile) != 1) {
-    if (!feof(infile)) warn("Failed to read frame size\n");
+    if (!feof(infile)) warn("Failed to read frame size");
   } else {
     frame_size = mem_get_le32(raw_header);
 
     if (frame_size > 256 * 1024 * 1024) {
-      warn("Read invalid frame size (%u)\n", (unsigned int)frame_size);
+      warn("Read invalid frame size (%u)", (unsigned int)frame_size);
       frame_size = 0;
     }
 
@@ -92,7 +92,7 @@
         *buffer = new_buffer;
         *buffer_size = 2 * frame_size;
       } else {
-        warn("Failed to allocate compressed data buffer\n");
+        warn("Failed to allocate compressed data buffer");
         frame_size = 0;
       }
     }
@@ -100,7 +100,7 @@
 
   if (!feof(infile)) {
     if (fread(*buffer, 1, frame_size, infile) != frame_size) {
-      warn("Failed to read full frame\n");
+      warn("Failed to read full frame");
       return 1;
     }