diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-20 13:00:04 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-10-20 13:00:04 +0200 |
commit | fe2be5d9ce528b3894e1e04dc5f936772508be6b (patch) | |
tree | 1a2211a2284f47e2c217d7db11c9a1ca76efd136 /libavformat/hlsenc.c | |
parent | c4f65611bc14af6eb4a81416be51dca435548f82 (diff) | |
download | ffmpeg-fe2be5d9ce528b3894e1e04dc5f936772508be6b.tar.gz |
avformat/hlsenc: Fix check for SPS
Check all the six bits, not only the two bits that are set for SPS.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/hlsenc.c')
-rw-r--r-- | libavformat/hlsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 4967247bca..cbfd8f7c0d 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -351,7 +351,7 @@ static void write_codec_attr(AVStream *st, VariantStream *vs) /* check the boundary of data which from current position is small than extradata_size */ while (data && (data - st->codecpar->extradata + 19) < st->codecpar->extradata_size) { /* get HEVC SPS NAL and seek to profile_tier_level */ - if (!(data[0] | data[1] | data[2]) && data[3] == 1 && ((data[4] & 0x42) == 0x42)) { + if (!(data[0] | data[1] | data[2]) && data[3] == 1 && ((data[4] & 0x7E) == 0x42)) { uint8_t *rbsp_buf; int remain_size = 0; int rbsp_size = 0; |