summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvdnav.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_dvdnav.c')
-rw-r--r--stream/stream_dvdnav.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stream/stream_dvdnav.c b/stream/stream_dvdnav.c
index d5090cfa69..a042508c2a 100644
--- a/stream/stream_dvdnav.c
+++ b/stream/stream_dvdnav.c
@@ -262,8 +262,11 @@ static int fill_buffer(stream_t *s, void *buf, int max_len)
struct priv *priv = s->priv;
dvdnav_t *dvdnav = priv->dvdnav;
- if (max_len < 2048)
+ if (max_len < 2048) {
+ MP_FATAL(s, "Short read size. Data corruption will follow. Please "
+ "provide a patch.\n");
return -1;
+ }
while (1) {
int len = -1;