summaryrefslogtreecommitdiff
path: root/streaminfo.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-16 11:26:00 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-16 11:26:00 +0100
commit6d7569aec72f444763474efb420ae403f90e36ae (patch)
tree4c9b792bfe0c0b54bda1f2e7a2245496982104bd /streaminfo.cpp
parentc0712181cc47bd4ae2b082973635dc51880eebe8 (diff)
downloadvdr-plugin-markad-release/v0.0.6.tar.gz
vdr-plugin-markad-release/v0.0.6.tar.bz2
Fixed I-Frame off by one bug in H262, fixed output of H264 progressive marksrelease/v0.0.6
Changed LoadInfo handling
Diffstat (limited to 'streaminfo.cpp')
-rw-r--r--streaminfo.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/streaminfo.cpp b/streaminfo.cpp
index 4167b7c..f28b4e7 100644
--- a/streaminfo.cpp
+++ b/streaminfo.cpp
@@ -409,7 +409,7 @@ bool cMarkAdStreamInfo::FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt,
{
bs.skipBits(2); // colour_plane_id
}
- bs.skipBits(H264.log2_max_frame_num); // frame_num
+ int frame_num=bs.getBits(H264.log2_max_frame_num); // frame_num
maContext->Video.Info.Interlaced=false;
if (!H264.frame_mbs_only_flag)
@@ -455,10 +455,12 @@ bool cMarkAdStreamInfo::FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt,
}
maContext->Video.Info.Pict_Type=slice_type;
- return true;
+ if (frame_num!=H264.frame_num)
+ {
+ H264.frame_num=frame_num;
+ return true;
+ }
}
-
-
return false;
}