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:
d35d756
)
code-utile: fix level descriptions for fgs
author
Stefan Kost
<ensonic@users.sf.net>
Fri, 27 May 2011 08:39:21 +0000
(11:39 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Fri, 27 May 2011 08:41:24 +0000
(11:41 +0300)
fgs levels range from 8-13 and are mapped to 0-5.
gst-libs/gst/pbutils/codec-utils.c
patch
|
blob
|
history
diff --git
a/gst-libs/gst/pbutils/codec-utils.c
b/gst-libs/gst/pbutils/codec-utils.c
index
2fe49b2
..
65483a3
100644
(file)
--- a/
gst-libs/gst/pbutils/codec-utils.c
+++ b/
gst-libs/gst/pbutils/codec-utils.c
@@
-718,6
+718,9
@@
gst_codec_utils_mpeg4video_get_level (const guint8 * vis_obj_seq, guint len)
else if (profile_id == 0 && level_id == 9)
/* Simple Profile / Level 0b */
return "0b";
+ else if (profile_id == 0xf && level_id > 7)
+ /* Fine Granularity Scalable Profile */
+ return digit_to_string (level_id - 8);
else if (level_id <= level_max[profile_id])
/* Levels for all other cases */
return digit_to_string (level_id);