summaryrefslogtreecommitdiff
path: root/multimedia/vlc/patches/patch-aa
blob: 1708de9472a2a4fe84503a2bc62e89ded36d7efb (plain)
1
2
3
4
5
6
7
8
9
10
11
--- modules/access/rtsp/real.c.orig	2009-08-09 13:00:43.000000000 +0300
+++ modules/access/rtsp/real.c	2009-08-09 13:01:54.000000000 +0300
@@ -592,6 +592,8 @@ int real_get_rdt_chunk(rtsp_client_t *rt
 
   int n;
   rmff_dump_pheader(ph, (char*)*buffer);
+  if (ph->length < 12)
+	return 0;
   n=rtsp_read_data(rtsp_session, (uint8_t*)(*buffer + 12), ph->length - 12);
   return (n <= 0) ? 0 : n+12;
 }