diff options
author | Jochen Dolze <vdr@dolze.de> | 2011-01-04 14:34:18 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2011-01-04 14:34:18 +0100 |
commit | 266060cb5e75340c713e070315378f44aa366b4e (patch) | |
tree | d75c4b8258ac861766be7615af1adb625c33f488 /command/streaminfo.cpp | |
parent | 703a0f198a0756c0532ac4ec9a884d99a058c904 (diff) | |
download | vdr-plugin-markad-266060cb5e75340c713e070315378f44aa366b4e.tar.gz vdr-plugin-markad-266060cb5e75340c713e070315378f44aa366b4e.tar.bz2 |
Changed index creation for TS
Removed CheckDolbyDigital51
Diffstat (limited to 'command/streaminfo.cpp')
-rw-r--r-- | command/streaminfo.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/command/streaminfo.cpp b/command/streaminfo.cpp index e52ca0b..3330e12 100644 --- a/command/streaminfo.cpp +++ b/command/streaminfo.cpp @@ -142,6 +142,7 @@ bool cMarkAdStreamInfo::FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt, uint32_t height=0; uint32_t aspect_ratio_idc=0; double frame_rate=0; + bool fixedframerate=false; int sar_width=1,sar_height=1; int profile_idc = bs.getU8(); // profile_idc @@ -250,9 +251,10 @@ bool cMarkAdStreamInfo::FindH264VideoInfos(MarkAdContext *maContext, uchar *pkt, time_scale = bs.getU32(); // time_scale if (num_units_in_tick > 0) { - frame_rate = time_scale / (2*num_units_in_tick); + frame_rate = time_scale / num_units_in_tick; + if (frame_mbs_only_flag) frame_rate/=2; } - bs.skipBit(); // fixed_frame_rate_flag + fixedframerate=bs.getBit(); // fixed_frame_rate_flag } #if 0 int nal_hrd_parameters_present_flag = bs.getBit(); // nal_hrd_parameters_present_flag |