Mercurial > libavformat.hg
diff audio.c @ 921:547675092e98 libavformat
video4linux2 input support
patch by Luca Abeni, lucabe72 $$at$$ email $$dot$$ it
| author | diego |
|---|---|
| date | Wed, 01 Feb 2006 11:31:33 +0000 |
| parents | edbe5c3717f9 |
| children | 2d57ce58f576 |
line wrap: on
line diff
--- a/audio.c Mon Jan 30 23:32:14 2006 +0000 +++ b/audio.c Wed Feb 01 11:31:33 2006 +0000 @@ -239,7 +239,7 @@ st->codec->sample_rate = s->sample_rate; st->codec->channels = s->channels; - av_set_pts_info(st, 48, 1, 1000000); /* 48 bits pts in us */ + av_set_pts_info(st, 64, 1, 1000000); /* 64 bits pts in us */ return 0; } @@ -271,7 +271,7 @@ if (ret == -1 && (errno == EAGAIN || errno == EINTR)) { av_free_packet(pkt); pkt->size = 0; - pkt->pts = av_gettime() & ((1LL << 48) - 1); + pkt->pts = av_gettime(); return 0; } if (!(ret == 0 || (ret == -1 && (errno == EAGAIN || errno == EINTR)))) { @@ -291,7 +291,7 @@ cur_time -= (bdelay * 1000000LL) / (s->sample_rate * s->channels); /* convert to wanted units */ - pkt->pts = cur_time & ((1LL << 48) - 1); + pkt->pts = cur_time; if (s->flip_left && s->channels == 2) { int i;
