diff options
Diffstat (limited to 'gst/videoparsers')
-rw-r--r-- | gst/videoparsers/gstmpegvideoparse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/videoparsers/gstmpegvideoparse.c b/gst/videoparsers/gstmpegvideoparse.c index 8d19046e7..f00a795cc 100644 --- a/gst/videoparsers/gstmpegvideoparse.c +++ b/gst/videoparsers/gstmpegvideoparse.c @@ -636,7 +636,7 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse) profile = profiles[profile_c - 1]; if ((level_c > 3) && (level_c < 11) && (level_c % 2 == 0)) - level = levels[(level_c >> 1) - 1]; + level = levels[(level_c >> 1) - 2]; if (profile_c == 8) { /* Non-hierarchical profile */ @@ -664,6 +664,8 @@ gst_mpegv_parse_update_src_caps (GstMpegvParse * mpvparse) /* FIXME does it make sense to expose profile/level in the caps ? */ + GST_DEBUG_OBJECT (mpvparse, "profile:'%s' level:'%s'", profile, level); + if (profile) gst_caps_set_simple (caps, "profile", G_TYPE_STRING, profile, NULL); else |