diff options
author | Marton Balint <cus@passwd.hu> | 2019-02-23 00:10:30 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2019-03-01 22:30:13 +0100 |
commit | 837f2c97984a259f8fef8be13569f937fa3513f1 (patch) | |
tree | ac46febd13a01085adecd25c6fee131433b6ecf9 | |
parent | fe36dcbff20e5a6eae8abbc0dd1a3a68df640ea6 (diff) | |
download | ffmpeg-837f2c97984a259f8fef8be13569f937fa3513f1.tar.gz |
avformat/mpegtsenc: write format_identifier HEVC for HEVC streams
This improves compatibility with some consumer (LG WebOS) TVs which apparently
search a HEVC descriptor (which our mpegts muxer can't generate) or a format
identifier.
Since the HEVC format identifier is not registered (but used in the wild), it is
not written if strict_std_compliance is higher than normal.
This fixes the issue in ticket #7744.
Signed-off-by: Marton Balint <cus@passwd.hu>
-rw-r--r-- | libavformat/mpegtsenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 099d003f42..fc0ea225c6 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -606,6 +606,8 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service) put_registration_descriptor(&q, MKTAG('d', 'r', 'a', 'c')); } else if (stream_type == STREAM_TYPE_VIDEO_VC1) { put_registration_descriptor(&q, MKTAG('V', 'C', '-', '1')); + } else if (stream_type == STREAM_TYPE_VIDEO_HEVC && s->strict_std_compliance <= FF_COMPLIANCE_NORMAL) { + put_registration_descriptor(&q, MKTAG('H', 'E', 'V', 'C')); } break; case AVMEDIA_TYPE_DATA: |