X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fty.c;h=8230d3a2bb243d9b4c0c7e6b8edadf16c6b55051;hb=0ed678a97abddef6b287b8cb93c24fba662f54a3;hp=d348643f40cfb9a95f1f1a0cf9a874fb121599b4;hpb=75aa14b870226536d38ec90857ab741e196f70f3;p=ffmpeg diff --git a/libavformat/ty.c b/libavformat/ty.c index d348643f40c..8230d3a2bb2 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);