h264 parser: Don't deescape more than 64 bytes (for once the comment was correct but code was not)

This commit is contained in:
Andreas Öman 2010-02-22 19:44:30 +00:00
parent 4a904268a1
commit 6540760a83

View file

@ -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;