Skip to content

Commit dce3a2f

Browse files
author
raymondzheng
committed
ijkplayer: fix seek bug when no audio
1 parent edfca47 commit dce3a2f

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
@@ -3246,6 +3246,9 @@ static int read_thread(void *arg)
32463246
/* open the streams */
32473247
if (st_index[AVMEDIA_TYPE_AUDIO] >= 0) {
32483248
stream_component_open(ffp, st_index[AVMEDIA_TYPE_AUDIO]);
3249+
} else {
3250+
ffp->av_sync_type = AV_SYNC_VIDEO_MASTER;
3251+
is->av_sync_type = ffp->av_sync_type;
32493252
}
32503253

32513254
ret = -1;

0 commit comments

Comments
 (0)