summaryrefslogtreecommitdiff
path: root/decoder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'decoder.cpp')
-rw-r--r--decoder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder.cpp b/decoder.cpp
index 12ac059..ef34fb8 100644
--- a/decoder.cpp
+++ b/decoder.cpp
@@ -94,8 +94,9 @@ unsigned AcMod:
void cMarkAdDecoder::FindVideoInfos(MarkAdContext *maContext, uchar *pkt, int len)
{
if ((!maContext) || (!pkt) || (!len)) return;
+ if (!maContext->General.VPid.Type) return;
- if (maContext->General.H264)
+ if (maContext->General.VPid.Type==MARKAD_PIDTYPE_VIDEO_H264)
{
FindH264VideoInfos(maContext, pkt, len);
}