This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
Make buffer size check consistent and avoid a possible overflow.
tags/n0.8
Reimar Döffinger
14 years ago
parent
c940c31c88
commit
7f2228dbfe
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/rtpenc_h264.c
+ 1
- 1
libavformat/rtpenc_h264.c
View File
@@ -40,7 +40,7 @@ static const uint8_t *avc_mp4_find_startcode(const uint8_t *start, const uint8_t
res = (res << 8) | *start++;
}
if (
res + start > end
) {
if (
end - start < res
) {
return NULL;
}
Write
Preview
Loading…
Cancel
Save