aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-09-19 18:05:23 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-10-07 03:03:09 +0200
commit8c49340b189fe6e2f563a00c708eec97101ae337 (patch)
tree27bb47e73f2a15a78cf6d17b2514acd10684cdf3
parentad89e203bfedf25df00e2a6ed9196170d772f25b (diff)
downloadffmpeg-8c49340b189fe6e2f563a00c708eec97101ae337.tar.gz
libavformat/ty: use decimal constant for shift
This was the only case in the source that uses a hexadecimal shift value. The change removed a special case in respect to greping Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/ty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ty.c b/libavformat/ty.c
index d348643f40..8230d3a2bb 100644
--- a/libavformat/ty.c
+++ b/libavformat/ty.c
@@ -254,7 +254,7 @@ static int analyze_chunk(AVFormatContext *s, const uint8_t *chunk)
if (data_offset + hdrs[i].rec_size > CHUNK_SIZE)
break;
- if ((hdrs[i].subrec_type << 0x08 | hdrs[i].rec_type) == 0x3c0 && hdrs[i].rec_size > 15) {
+ if ((hdrs[i].subrec_type << 8 | hdrs[i].rec_type) == 0x3c0 && hdrs[i].rec_size > 15) {
/* first make sure we're aligned */
int pes_offset = find_es_header(ty_MPEGAudioPacket,
&chunk[data_offset], 5);