Mercurial > mplayer.hg
changeset 10888:0e940f364a6e
Fix for borked .mov files with bogus user data length values. Patch by Marek Zelem.
author | mosu |
---|---|
date | Sat, 20 Sep 2003 10:10:11 +0000 |
parents | 858e2605726c |
children | 73e064cfcbb7 |
files | libmpdemux/demux_mov.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c Sat Sep 20 00:52:51 2003 +0000 +++ b/libmpdemux/demux_mov.c Sat Sep 20 10:10:11 2003 +0000 @@ -1455,9 +1455,13 @@ case MOV_FOURCC('A','l','l','F'): default: { + if( udta_len>udta_size) + udta_len=udta_size; + { char dump[udta_len-4]; stream_read(demuxer->stream, (char *)&dump, udta_len-4-4); udta_size -= udta_len; + } } } }