mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
hls: Avoid coverity warning about access off the end of an array.
Fixes CID 1364755
This commit is contained in:
parent
947656cfd2
commit
d78686f7d4
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue