summaryrefslogtreecommitdiff
path: root/streaminfo.cpp
diff options
context:
space:
mode:
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;
}