summaryrefslogtreecommitdiffstats
path: root/libao2/ao_ivtv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libao2/ao_ivtv.c')
-rw-r--r--libao2/ao_ivtv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libao2/ao_ivtv.c b/libao2/ao_ivtv.c
index 540bc2f38a..e05537cbd8 100644
--- a/libao2/ao_ivtv.c
+++ b/libao2/ao_ivtv.c
@@ -78,7 +78,7 @@ init (int rate, int channels, int format, int flags)
ao_data.format = AF_FORMAT_MPEG2;
ao_data.buffersize = 2048;
ao_data.bps = rate * 2 * 2;
- ao_data.pts = 0;
+ ao_data.brokenpts = 0;
freq = rate;
/* check for supported audio rate */
@@ -127,7 +127,7 @@ get_space (void)
float x;
int y;
- x = (float) (vo_pts - ao_data.pts) / 90000.0;
+ x = (float) (vo_pts - ao_data.brokenpts) / 90000.0;
if (x <= 0)
return 0;
@@ -148,7 +148,7 @@ play (void *data, int len, int flags)
if (ao_data.format != AF_FORMAT_MPEG2)
return 0;
- send_mpeg_pes_packet (data, len, MPEG_AUDIO_ID, ao_data.pts, 2, ivtv_write);
+ send_mpeg_pes_packet (data, len, MPEG_AUDIO_ID, ao_data.brokenpts, 2, ivtv_write);
return len;
}