summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-12-15 08:34:26 -0800
committerJohn Stebbins <[email protected]>2016-12-15 08:39:32 -0800
commited9e73eb7ce9b9b0113a4ef6a697720f48c1f285 (patch)
tree17f5d7148c875f55c6df1337bb66649ae74f4d5c
parente6221697782b83a0e4ced36085b74ce36ddf2a21 (diff)
reader: fix compiler warning "buf uninitialized"
-rw-r--r--libhb/reader.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libhb/reader.c b/libhb/reader.c
index 9b8b6084e..0b9113d34 100644
--- a/libhb/reader.c
+++ b/libhb/reader.c
@@ -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);