Skip to content
Snippets Groups Projects
Commit 2dbe0bd4 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

check for frames with 2*size > max_dist and no crc

Originally committed as revision 7076 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 8ba3e5d8
No related branches found
No related tags found
No related merge requests found
...@@ -687,6 +687,9 @@ static int decode_frame_header(NUTContext *nut, int *flags_ret, int64_t *pts, in ...@@ -687,6 +687,9 @@ static int decode_frame_header(NUTContext *nut, int *flags_ret, int64_t *pts, in
get_v(bc); get_v(bc);
if(flags&FLAG_CHECKSUM){ if(flags&FLAG_CHECKSUM){
get_be32(bc); //FIXME check this get_be32(bc); //FIXME check this
}else if(size > 2*nut->max_distance){
av_log(s, AV_LOG_ERROR, "frame size > 2max_distance and no checksum\n");
return -1;
} }
*flags_ret= flags; *flags_ret= flags;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment