From 2c1fe341b8b0b270e8b4505bc8bf7b99a3287992 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 1 Dec 2017 12:42:09 +0100 Subject: [PATCH] Add a display name for the 'avc3' fourCC. --- MP42/MP42MediaFormat.h | 1 + MP42/MP42MediaFormat.m | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/MP42/MP42MediaFormat.h b/MP42/MP42MediaFormat.h index ad1b810..ffc6308 100644 --- a/MP42/MP42MediaFormat.h +++ b/MP42/MP42MediaFormat.h @@ -71,6 +71,7 @@ enum : MP42VideoCodecType kMP42VideoCodecType_H263 = 'h263', kMP42VideoCodecType_H264 = 'avc1', + kMP42VideoCodecType_H264_PSinBitstream = 'avc3', kMP42VideoCodecType_HEVC = 'hvc1', kMP42VideoCodecType_HEVC_PSinBitstream = 'hev1', kMP42VideoCodecType_MPEG4Video = 'mp4v', diff --git a/MP42/MP42MediaFormat.m b/MP42/MP42MediaFormat.m index 8aba6a0..8d13854 100644 --- a/MP42/MP42MediaFormat.m +++ b/MP42/MP42MediaFormat.m @@ -118,6 +118,10 @@ NSString *localizedVideoDisplayName(FourCharCode mediaSubtype) result = NSLocalizedString(@"H.264", nil); break; + case kMP42VideoCodecType_H264_PSinBitstream: + result = NSLocalizedString(@"H.264 (Parameter Sets in Bitstream)", nil); + break; + case kMP42VideoCodecType_HEVC: result = NSLocalizedString(@"HEVC", nil); break;