From 6540760a8375c0518cd47835c750c74ea083ce84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= <andreas@lonelycoder.com> Date: Mon, 22 Feb 2010 19:44:30 +0000 Subject: [PATCH] h264 parser: Don't deescape more than 64 bytes (for once the comment was correct but code was not) --- src/parsers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsers.c b/src/parsers.c index ca6389ed..2c8a629d 100644 --- a/src/parsers.c +++ b/src/parsers.c @@ -807,7 +807,7 @@ parse_h264(th_transport_t *t, th_stream_t *st, size_t len, t->tht_dts_start = st->st_curdts; l2 = len - 3 > 64 ? 64 : len - 3; - h264_nal_deescape(&bs, buf + 3, len); /* we just the first stuff */ + h264_nal_deescape(&bs, buf + 3, l2); /* we just the first stuff */ if(h264_decode_slice_header(st, &bs, &pkttype)) { free(bs.data); return 1;