Skip to content
Snippets Groups Projects
Commit 6668f5f8 authored by Rayan Osseiran's avatar Rayan Osseiran Committed by Adrien Béraud
Browse files

video: fix null codec

Change-Id: I6f17fdb126088c2a395a3a965bbd581a70f8bd84
parent e445027e
Branches
Tags
No related merge requests found
...@@ -187,6 +187,8 @@ abstract public class CameraService { ...@@ -187,6 +187,8 @@ abstract public class CameraService {
} }
public String getCodec() { public String getCodec() {
if (codec == null)
return MediaFormat.MIMETYPE_VIDEO_AVC;
switch (codec) { switch (codec) {
case "H264": return MediaFormat.MIMETYPE_VIDEO_AVC; case "H264": return MediaFormat.MIMETYPE_VIDEO_AVC;
case "H265": return MediaFormat.MIMETYPE_VIDEO_HEVC; case "H265": return MediaFormat.MIMETYPE_VIDEO_HEVC;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment