From 1e5a30928b6d7fdbce09e8ea8b31e7e414b72358 Mon Sep 17 00:00:00 2001
From: philippegorley <philippe.gorley@savoirfairelinux.com>
Date: Wed, 14 Feb 2018 13:34:07 -0500
Subject: [PATCH] video: increase default h264 level

Level 2.0 (0x14) can only handle up to 352x288 at 30 fps, which can trip
up the decoder (especially a hardware decoder) if the video is of a
higher resolution. Increase the default level to 4.1 (0x29), which can
handle up to 2,048x1,024 at 30 fps.

Change-Id: Icd3fea81a4ea45796bab9d5f985a8ae1e1b36cfd
---
 src/media/libav_utils.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/media/libav_utils.h b/src/media/libav_utils.h
index 31673898d3..8b12308e2d 100644
--- a/src/media/libav_utils.h
+++ b/src/media/libav_utils.h
@@ -33,7 +33,7 @@ namespace ring { namespace libav_utils {
     int libav_pixel_format(int fmt);
     int ring_pixel_format(int fmt);
 
-    const char *const DEFAULT_H264_PROFILE_LEVEL_ID = "profile-level-id=428014";
+    const char *const DEFAULT_H264_PROFILE_LEVEL_ID = "profile-level-id=428029";
     const char *const MAX_H264_PROFILE_LEVEL_ID = "profile-level-id=640034";
 
     void ring_url_split(const char *url,
-- 
GitLab