Skip to content

Commit f02b656

Browse files
author
eagleychen
committed
add av_sync_type method
1 parent d9dd16e commit f02b656

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ijkmedia/ijkplayer/ff_ffplay.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,6 +3432,9 @@ static int read_thread(void *arg)
34323432
ffp->av_sync_type = AV_SYNC_EXTERNAL_CLOCK;
34333433
is->av_sync_type = ffp->av_sync_type;
34343434
}
3435+
if (ffp->packet_max_num == 10001) {
3436+
is->av_sync_type = AV_SYNC_EXTERNAL_CLOCK;
3437+
}
34353438

34363439
ret = -1;
34373440
if (st_index[AVMEDIA_TYPE_VIDEO] >= 0) {

0 commit comments

Comments
 (0)