projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
947656c
)
hls: Avoid coverity warning about access off the end of an array.
author
Jan Schmidt
<jan@centricular.com>
Thu, 4 Aug 2016 12:21:16 +0000
(22:21 +1000)
committer
Jan Schmidt
<jan@centricular.com>
Thu, 4 Aug 2016 12:22:44 +0000
(22:22 +1000)
Fixes CID 1364755
ext/hls/m3u8.c
patch
|
blob
|
history
diff --git
a/ext/hls/m3u8.c
b/ext/hls/m3u8.c
index
05f9188
..
bdb4acf
100644
(file)
--- a/
ext/hls/m3u8.c
+++ b/
ext/hls/m3u8.c
@@
-1039,7
+1039,7
@@
gst_m3u8_hls_media_type_get_nick (GstHLSMediaType mtype)
"subtitle", "closed-captions"
};
- if (mtype < 0 || mtype > GST_HLS_N_MEDIA_TYPES)
+ if (mtype < 0 || mtype >
=
GST_HLS_N_MEDIA_TYPES)
return "invalid";
return nicks[mtype];