mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
much better AV sync, for some files
Originally committed as revision 3172 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
3c895fc098
commit
7e0140cbd7
4
ffplay.c
4
ffplay.c
@ -46,7 +46,7 @@
|
|||||||
#define SDL_AUDIO_BUFFER_SIZE 1024
|
#define SDL_AUDIO_BUFFER_SIZE 1024
|
||||||
|
|
||||||
/* no AV sync correction is done if below the AV sync threshold */
|
/* no AV sync correction is done if below the AV sync threshold */
|
||||||
#define AV_SYNC_THRESHOLD 0.08
|
#define AV_SYNC_THRESHOLD 0.01
|
||||||
/* no AV correction is done if too big error */
|
/* no AV correction is done if too big error */
|
||||||
#define AV_NOSYNC_THRESHOLD 10.0
|
#define AV_NOSYNC_THRESHOLD 10.0
|
||||||
|
|
||||||
@ -611,7 +611,7 @@ static void video_refresh_timer(void *opaque)
|
|||||||
if (is->video_st) {
|
if (is->video_st) {
|
||||||
if (is->pictq_size == 0) {
|
if (is->pictq_size == 0) {
|
||||||
/* if no picture, need to wait */
|
/* if no picture, need to wait */
|
||||||
schedule_refresh(is, 40);
|
schedule_refresh(is, 1);
|
||||||
} else {
|
} else {
|
||||||
/* dequeue the picture */
|
/* dequeue the picture */
|
||||||
vp = &is->pictq[is->pictq_rindex];
|
vp = &is->pictq[is->pictq_rindex];
|
||||||
|
Loading…
Reference in New Issue
Block a user