[mythtv-firehose] mythtv/master commit: c3f130c65 by Gavin Hurlbut (Beirdo)

MythTV noreply at mythtv.org
Wed May 11 22:02:50 UTC 2011


      Author:  Gavin Hurlbut <ghurlbut at mythtv.org>
 Change Date:  2011-05-11T15:02:06-07:00
   Push Date:  2011/05/11 15:02:43 -0700
  Repository:  mythtv
      Branch:  master
New Revision:  c3f130c65c4075f49ad6a2fa7d059ec3381e404d
   Changeset:  https://github.com/MythTV/mythtv/commit/c3f130c65

Log:

Fix tspacket by indexing off the payload rather than header

The actual AFCOffset() is indexed off the beginning of the packet, however, the
StartOfFieldPointer() is now indexing off the _payload[] rather than the _data[]
which is not in TSPacket, but rather in TSHeader (which TSPacket inherits from).

Although the cast done from char * to TSPacket * puts the data in the correct
place, the compiler is not at all happy with it when you run off the end of
the _data[] array and into the _payload[] array.  Since that is what we really
are intending to do, let's just do it explicitly and make the compiler happy
in the process.

Modified:

   mythtv/libs/libmythtv/mpeg/tspacket.h



More information about the mythtv-firehose mailing list