diff options
author | Jan Schmidt <jan@centricular.com> | 2016-08-04 22:21:16 +1000 |
---|---|---|
committer | Jan Schmidt <jan@centricular.com> | 2016-08-04 22:22:44 +1000 |
commit | d78686f7d49754875c51bc9cba121b022befadbb (patch) | |
tree | 0d0552276e2969aa297a2b60282d4403465f4f8b /ext/hls/m3u8.c | |
parent | 947656cfd22b75f914d5abe0af82396787f67564 (diff) | |
download | gstreamer-plugins-bad-d78686f7d49754875c51bc9cba121b022befadbb.tar.gz |
hls: Avoid coverity warning about access off the end of an array.
Fixes CID 1364755
Diffstat (limited to 'ext/hls/m3u8.c')
-rw-r--r-- | ext/hls/m3u8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/hls/m3u8.c b/ext/hls/m3u8.c index 05f9188c3..bdb4acf88 100644 --- 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]; |