mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
mpegvideoparse: add a couple consts on string literal arrays
This commit is contained in:
parent
36c496b8f1
commit
e81ecb250a
1 changed files with 3 additions and 2 deletions
|
@ -624,12 +624,13 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse)
|
|||
* 3 => SNR Scalable, 4 => Main, 5 => Simple
|
||||
* 4:2:2 and Multi-view have profile = 0, with the escape bit set to 1
|
||||
*/
|
||||
const gchar *profiles[] = { "high", "spatial", "snr", "main", "simple" };
|
||||
const gchar *const profiles[] =
|
||||
{ "high", "spatial", "snr", "main", "simple" };
|
||||
/*
|
||||
* Level indication - 4 => High, 6 => High-1440, 8 => Main, 10 => Low,
|
||||
* except in the case of profile = 0
|
||||
*/
|
||||
const gchar *levels[] = { "high", "high-1440", "main", "low" };
|
||||
const gchar *const levels[] = { "high", "high-1440", "main", "low" };
|
||||
|
||||
if (profile_c > 0 && profile_c < 6)
|
||||
profile = profiles[profile_c - 1];
|
||||
|
|
Loading…
Reference in a new issue