diff options
author | Harm van der Heijden <hrm@users.sourceforge.net> | 2001-12-23 04:27:33 +0000 |
---|---|---|
committer | Harm van der Heijden <hrm@users.sourceforge.net> | 2001-12-23 04:27:33 +0000 |
commit | abd7d20540e903918b90a1f7f98536b32fa7e5ee (patch) | |
tree | 152a2248bedce09ed7aafc1534186dc2da2754e0 | |
parent | d0468cf1c2e24be3287f4766a49a9bc6a8dc9c18 (diff) | |
download | xine-lib-abd7d20540e903918b90a1f7f98536b32fa7e5ee.tar.gz xine-lib-abd7d20540e903918b90a1f7f98536b32fa7e5ee.tar.bz2 |
fixed bug in scr offset calculation
CVS patchset: 1289
CVS date: 2001/12/23 04:27:33
-rw-r--r-- | src/dxr3/dxr3_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dxr3/dxr3_decoder.c b/src/dxr3/dxr3_decoder.c index f68c1f181..b46d7d237 100644 --- a/src/dxr3/dxr3_decoder.c +++ b/src/dxr3/dxr3_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_decoder.c,v 1.49 2001/12/23 04:08:25 hrm Exp $ + * $Id: dxr3_decoder.c,v 1.50 2001/12/23 04:27:33 hrm Exp $ * * dxr3 video and spu decoder plugin. Accepts the video and spu data * from XINE and sends it directly to the corresponding dxr3 devices. @@ -251,7 +251,7 @@ static void dxr3scr_adjust (scr_plugin_t *scr, uint32_t vpts) { if (ioctl(self->fd_control, EM8300_IOCTL_SCR_GET, &cpts)) printf("dxr3scr: adjust get failed (%s)\n", strerror(errno)); cpts <<= 1; - self->offset = (vpts - (cpts + self->offset)); + self->offset = vpts - cpts; /* kernel driver ignores diffs < 7200 */ if (self->offset < -7200 || self->offset > 7200) { vpts >>= 1; |