mp4 and generic: produce codec string with "p" prefix for profile.
authorGustavo Sverzut Barbieri <gustavo.barbieri@intel.com>
Wed, 20 Aug 2014 23:38:15 +0000 (20:38 -0300)
committerGustavo Sverzut Barbieri <gustavo.barbieri@intel.com>
Wed, 20 Aug 2014 23:38:15 +0000 (20:38 -0300)
we do match for "-p" to search profile, thus we must prefix the
profile string with "p" otherwise it won't match in DLNA processing.

src/plugins/generic/generic.c
src/plugins/mp4/mp4.c

index d3a0069..56d6887 100644 (file)
@@ -163,7 +163,7 @@ _mp4_get_video_codec(AVStream *stream, struct lms_string_size *value)
     else
         snprintf(str_level, sizeof(str_level), "%u.%u", level / 10, level % 10);
 
-    ret.len = snprintf(buf, sizeof(buf), "h264-%s-l%s", str_profile, str_level);
+    ret.len = snprintf(buf, sizeof(buf), "h264-p%s-l%s", str_profile, str_level);
     ret.str = buf;
 
     lms_string_size_dup(value, &ret);
index 7cb7fd9..7e374a7 100644 (file)
@@ -500,7 +500,7 @@ _get_video_codec(MP4FileHandle mp4_fh, MP4TrackId id)
             }
         }
 
-        ret.len = snprintf(buf, sizeof(buf), "h264-%s-l%s",
+        ret.len = snprintf(buf, sizeof(buf), "h264-p%s-l%s",
                            str_profile, str_level);
         ret.str = buf;
         goto found;