[vlc-commits] [Git][videolan/vlc][master] wav: fix invalid PCR when seeking to 0
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sat Nov 29 12:41:13 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
8be447b9 by Thomas Guillem at 2025-11-29T12:14:05+00:00
wav: fix invalid PCR when seeking to 0
Don't set the date to VLC_TICK_INVALID when seeking to 0.
This was causing an invalid PCR and a quick EOF.
```
[00007f4780091e20] main input debug: control type=15
[00007f4780091e20] main input debug: control type=3
[00007f4780091e20] main input debug: ES_OUT_RESET_PCR called
[00005653d9251a90] [qt] qt generic debug: on_player_buffering
[00007f4780091e20] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[00007f4780091e20] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[00007f4780091e20] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
...
[00007f4780091e20] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[00007f4780091e20] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[00007f4780091e20] main input error: Invalid PCR value in ES_OUT_SET_(GROUP_)PCR !
[00007f4780091e20] main input debug: EOF reached
```
- - - - -
1 changed file:
- modules/demux/wav.c
Changes:
=====================================
modules/demux/wav.c
=====================================
@@ -160,7 +160,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_SUCCESS;
ofs -= p_sys->i_data_pos;
- vlc_tick_t pts =
+ vlc_tick_t pts = VLC_TICK_0 +
vlc_tick_from_samples( ofs * 8, p_sys->fmt.i_bitrate );
date_Set( &p_sys->pts, pts );
break;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8be447b95677c0038413605114b14bcc906c0d04
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8be447b95677c0038413605114b14bcc906c0d04
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list