Commit ad52c33a authored by michael's avatar michael

check forw_ptr CRC


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10017 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent aff85331
......@@ -103,9 +103,12 @@ static int get_packetheader(NUTContext *nut, ByteIOContext *bc, int calculate_ch
int64_t size;
// start= url_ftell(bc) - 8;
init_checksum(bc, av_crc04C11DB7_update, 0);
size= get_v(bc);
if(size > 4096)
get_be32(bc); //FIXME check this
get_be32(bc);
if(get_checksum(bc) && size > 4096)
return -1;
init_checksum(bc, calculate_checksum ? av_crc04C11DB7_update : NULL, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment