From 1632d5f39a577b5fe1f6a6d89bd67896dbc54673 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 5 Jan 2014 15:26:38 +0200 Subject: [PATCH] VIDEO: Handle the AVI 'JUNQ' and 'dmlh' chunk headers These are used by Full Pipe's intro videos --- video/avi_decoder.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/video/avi_decoder.cpp b/video/avi_decoder.cpp index 36fe83fa195..7f5a5574747 100644 --- a/video/avi_decoder.cpp +++ b/video/avi_decoder.cpp @@ -59,6 +59,8 @@ namespace Video { #define ID_MIDS MKTAG('m','i','d','s') #define ID_TXTS MKTAG('t','x','t','s') #define ID_JUNK MKTAG('J','U','N','K') +#define ID_JUNQ MKTAG('J','U','N','Q') +#define ID_DMLH MKTAG('d','m','l','h') #define ID_STRF MKTAG('s','t','r','f') #define ID_MOVI MKTAG('m','o','v','i') #define ID_REC MKTAG('r','e','c',' ') @@ -155,9 +157,11 @@ bool AVIDecoder::parseNextChunk() { case ID_STRD: // Extra stream info, safe to ignore case ID_VEDT: // Unknown, safe to ignore case ID_JUNK: // Alignment bytes, should be ignored + case ID_JUNQ: // Same as JUNK, safe to ignore case ID_ISFT: // Metadata, safe to ignore case ID_DISP: // Metadata, should be safe to ignore case ID_STRN: // Metadata, safe to ignore + case ID_DMLH: // OpenDML extension, contains an extra total frames field, safe to ignore skipChunk(size); break; case ID_IDX1: