Skip to content

Commit

Permalink
Revert "Remove the compile warning about being off the end of array"
Browse files Browse the repository at this point in the history
This reverts commit 3bb663e.

This didn't work once you turn on the optimizer anyways.  It was tested on a
debug build, it cleaned up nicely, but the release build still knows we are
reading/writing off the end of the array.
  • Loading branch information
Beirdo committed May 8, 2011
1 parent 6eae80f commit 4de871a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/mpeg/tspacket.h
Expand Up @@ -169,8 +169,8 @@ class TSPacket : public TSHeader
}

//4.0 8 bits, iff payloadStart(), points to start of field
unsigned int StartOfFieldPointer() const { return *(data() + AFCOffset()); }
void SetStartOfFieldPointer(uint sof) { *(data() + AFCOffset()) = sof; }
unsigned int StartOfFieldPointer() const { return data()[AFCOffset()]; }
void SetStartOfFieldPointer(uint sof) { data()[AFCOffset()] = sof; }

QString toString() const;

Expand Down

0 comments on commit 4de871a

Please sign in to comment.