]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/ty.c
lavf/flvdec: added support for KUX container
[ffmpeg] / libavformat / ty.c
index d348643f40cfb9a95f1f1a0cf9a874fb121599b4..bbb2e28a93694c152fb28508854f9724fdc0f25b 100644 (file)
@@ -106,7 +106,7 @@ typedef struct TYDemuxContext {
     uint8_t         chunk[CHUNK_SIZE];
 } TYDemuxContext;
 
-static int ty_probe(AVProbeData *p)
+static int ty_probe(const AVProbeData *p)
 {
     int i;
 
@@ -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);