summaryrefslogtreecommitdiff
path: root/streaminfo.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-17 11:59:36 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-17 11:59:36 +0100
commitc579345b78b87bfbe9b1ce4cbe1be50c0d9dd11a (patch)
tree0d11070937587948790575db9aa1188c62582497 /streaminfo.cpp
parent216d281a0ea6140a6c1e0190a3ea2ae9ff5e467a (diff)
downloadvdr-plugin-markad-c579345b78b87bfbe9b1ce4cbe1be50c0d9dd11a.tar.gz
vdr-plugin-markad-c579345b78b87bfbe9b1ce4cbe1be50c0d9dd11a.tar.bz2
Hopefully fixed frame counter error
Diffstat (limited to 'streaminfo.cpp')
-rw-r--r--streaminfo.cpp24
1 files changed, 10 insertions, 14 deletions
diff --git a/streaminfo.cpp b/streaminfo.cpp
index f28b4e7..353440b 100644
--- a/streaminfo.cpp
+++ b/streaminfo.cpp
@@ -6,7 +6,7 @@
*/
#include "streaminfo.h"
-#include <stdio.h>
+
cMarkAdStreamInfo::cMarkAdStreamInfo()
{
memset(&H264,0,sizeof(H264));
@@ -409,18 +409,19 @@ bool cMarkAdStreamInfo::FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt,
{
bs.skipBits(2); // colour_plane_id
}
- int frame_num=bs.getBits(H264.log2_max_frame_num); // frame_num
+ bs.skipBits(H264.log2_max_frame_num); // frame_num
maContext->Video.Info.Interlaced=false;
if (!H264.frame_mbs_only_flag)
{
maContext->Video.Info.Interlaced=true;
- bool field_pic_flag=bs.getBit();
- if (field_pic_flag)
- {
- bool bottom_field_flag=bs.getBit();
- if (bottom_field_flag) return false;
- }
+ /*
+ bool field_pic_flag=bs.getBit();
+ if (field_pic_flag)
+ {
+ bool bottom_field_flag=bs.getBit();
+ }
+ */
}
switch (slice_type)
@@ -454,12 +455,7 @@ bool cMarkAdStreamInfo::FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt,
break;
}
maContext->Video.Info.Pict_Type=slice_type;
-
- if (frame_num!=H264.frame_num)
- {
- H264.frame_num=frame_num;
- return true;
- }
+ return true;
}
return false;
}