]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/flvdec.c
avformat/mxfenc: add jpeg2000 support.
[ffmpeg] / libavformat / flvdec.c
index 8d9ed8b24dfedae42f9ed3c7d691634d85ac19d1..12d25b20ae1e7e694945e69ad819b9334d6505c3 100644 (file)
@@ -777,7 +777,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
     /* pkt size is repeated at end. skip it */
     for (;; avio_skip(s->pb, 4)) {
         pos  = avio_tell(s->pb);
-        type = avio_r8(s->pb);
+        type = (avio_r8(s->pb) & 0x1F);
         size = avio_rb24(s->pb);
         dts  = avio_rb24(s->pb);
         dts |= avio_r8(s->pb) << 24;