projects
/
platform
/
upstream
/
gst-plugins-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7716358
)
codec-utils: fix mpeg4 level verification
author
Stefan Kost
<ensonic@users.sf.net>
Wed, 25 May 2011 11:38:21 +0000
(14:38 +0300)
committer
Stefan Kost
<ensonic@users.sf.net>
Fri, 27 May 2011 08:41:24 +0000
(11:41 +0300)
The current condition would never be true. As levels<6 are asp and levels>7 and
<14 are fgs, we should return NULL for cases 6,7,14,15.
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
f885fe1
..
2fe49b2
100644
(file)
--- a/
gst-libs/gst/pbutils/codec-utils.c
+++ b/
gst-libs/gst/pbutils/codec-utils.c
@@
-707,7
+707,7
@@
gst_codec_utils_mpeg4video_get_level (const guint8 * vis_obj_seq, guint len)
break;
case 0xf:
- if (level_id ==
7 &&
level_id > 0xd)
+ if (level_id ==
6 || level_id == 7 ||
level_id > 0xd)
return NULL;
break;
}