diff options
author | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-10-20 19:03:43 +0000 |
---|---|---|
committer | Guenter Bartsch <guenter@users.sourceforge.net> | 2002-10-20 19:03:43 +0000 |
commit | c4fc88175c8565b101823ead6e47a448a0b8e5fa (patch) | |
tree | 364f04e00d8330e9aca4adc4034d883df14d0ff1 /src | |
parent | 54fadadea25e2f333ef03674518b644f15e6e8e4 (diff) | |
download | xine-lib-c4fc88175c8565b101823ead6e47a448a0b8e5fa.tar.gz xine-lib-c4fc88175c8565b101823ead6e47a448a0b8e5fa.tar.bz2 |
another attempt to make audio and video start at the same pts
CVS patchset: 2887
CVS date: 2002/10/20 19:03:43
Diffstat (limited to 'src')
-rw-r--r-- | src/demuxers/demux_avi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c index 67d298bda..d9550f069 100644 --- a/src/demuxers/demux_avi.c +++ b/src/demuxers/demux_avi.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: demux_avi.c,v 1.123 2002/10/20 18:23:33 guenter Exp $ + * $Id: demux_avi.c,v 1.124 2002/10/20 19:03:43 guenter Exp $ * * demultiplexer for avi streams * @@ -1521,14 +1521,14 @@ static int demux_avi_start (demux_plugin_t *this_gen, * yeah, i know this implementation is pathetic (gb) */ - if ((audio_pts>video_pts) && (this->avi->audio[i]->audio_posc>0)) { + if ((audio_pts>video_pts) && (this->avi->audio[i]->audio_posc>0)) this->avi->audio[i]->audio_posc--; - aie = audio_cur_index_entry(this, this->avi->audio[i]); - if (aie) { - while ((this->avi->audio[i]->audio_posb<aie->len) - && ((audio_pts=get_audio_pts(this, i, this->avi->audio[i]->audio_posc , aie->tot, this->avi->audio[i]->audio_posb)) < video_pts)) - this->avi->audio[i]->audio_posb++; - } + + aie = audio_cur_index_entry(this, this->avi->audio[i]); + if (aie) { + while ((this->avi->audio[i]->audio_posb<aie->len) + && ((audio_pts=get_audio_pts(this, i, this->avi->audio[i]->audio_posc , aie->tot, this->avi->audio[i]->audio_posb)) < video_pts)) + this->avi->audio[i]->audio_posb++; } } } |