]> granicus.if.org Git - handbrake/commitdiff
reader: fix compiler warning "buf uninitialized"
authorJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 15 Dec 2016 16:34:26 +0000 (08:34 -0800)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Thu, 15 Dec 2016 16:39:32 +0000 (08:39 -0800)
libhb/reader.c

index 9b8b6084ee381c46eac0ad37208d7b0b73b850ad..0b9113d343fabfa7e3f81f52fe47a156b95efd1e 100644 (file)
@@ -473,6 +473,13 @@ static int reader_work( hb_work_object_t * w, hb_buffer_t ** buf_in,
             return HB_WORK_DONE;
         }
     }
+    else
+    {
+        // This should never happen
+        hb_error("Stream not initialized");
+        reader_send_eof(r);
+        return HB_WORK_DONE;
+    }
 
     (hb_demux[r->title->demuxer])(buf, &list, &r->demux);