projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ba3e5d
)
check for frames with 2*size > max_dist and no crc
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 14 Nov 2006 22:24:10 +0000
(22:24 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 14 Nov 2006 22:24:10 +0000
(22:24 +0000)
Originally committed as revision 7076 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/nutdec.c
patch
|
blob
|
history
diff --git
a/libavformat/nutdec.c
b/libavformat/nutdec.c
index
97bad24
..
b3e4943
100644
(file)
--- a/
libavformat/nutdec.c
+++ b/
libavformat/nutdec.c
@@
-687,6
+687,9
@@
static int decode_frame_header(NUTContext *nut, int *flags_ret, int64_t *pts, in
get_v(bc);
if(flags&FLAG_CHECKSUM){
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;