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
avcodec/h264_mp4toannexb_bsf: Reorder operations in nal_size check
Fixes Ticket4778 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n2.8
Michael Niedermayer
10 years ago
parent
c8890941d6
commit
2bb54b82b5
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavcodec/h264_mp4toannexb_bsf.c
+ 1
- 1
libavcodec/h264_mp4toannexb_bsf.c
View File
@@ -201,7 +201,7 @@ static int h264_mp4toannexb_filter(AVBitStreamFilterContext *bsfc,
buf += ctx->length_size;
unit_type = *buf & 0x1f;
if (
buf +
nal_size > buf_end || nal_size < 0)
if (nal_size > buf_end
- buf
|| nal_size < 0)
goto fail;
if (unit_type == 7)
Write
Preview
Loading…
Cancel
Save