git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d26a5b
)
Added 2 asserts.
author
Laurent Aimar
<fenrir@videolan.org>
Sat, 15 Nov 2008 12:02:55 +0000
(13:02 +0100)
committer
Laurent Aimar
<fenrir@videolan.org>
Sat, 15 Nov 2008 12:02:55 +0000
(13:02 +0100)
modules/mux/mpeg/pes.c
patch
|
blob
|
history
diff --git
a/modules/mux/mpeg/pes.c
b/modules/mux/mpeg/pes.c
index
7198a4d
..
50d668a
100644
(file)
--- a/
modules/mux/mpeg/pes.c
+++ b/
modules/mux/mpeg/pes.c
@@
-283,6
+283,9
@@
int EStoPES ( sout_instance_t *p_sout, block_t **pp_pes, block_t *p_es,
int i_pes_count = 1;
+ assert( i_max_pes_size >= 0 );
+ assert( i_header_size >= 0 );
+
/* NB, Only video ES may have unbounded length */
if( !i_max_pes_size ||
( p_fmt->i_cat != VIDEO_ES && i_max_pes_size > PES_PAYLOAD_SIZE_MAX ) )