Permalink
Browse files

Fix duration map logic for extrapolating to (frame=0,dur=0).

  • Loading branch information...
1 parent c13683f commit dc21c52223e6d1d82f7e593277b75906c4d98000 @stichnot stichnot committed Jan 3, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 mythtv/libs/libmythtv/decoderbase.cpp
@@ -1226,7 +1226,7 @@ uint64_t DecoderBase::TranslatePosition(const frm_pos_map_t &map,
// <= the given key, so back up one element upon > condition.
if (lower != map.begin() && (lower == map.end() || lower.key() > key))
--lower;
- if (lower == map.end())
+ if (lower == map.end() || lower.key() > key)
{
key1 = 0;
val1 = 0;

0 comments on commit dc21c52

Please sign in to comment.