Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
cb3fd029
Commit
cb3fd029
authored
Oct 04, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffplay: add a 3rd state to infbuf for autodetection
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
e2143067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ffplay.c
ffplay.c
+2
-2
No files found.
ffplay.c
View file @
cb3fd029
...
...
@@ -278,7 +278,7 @@ static int exit_on_keydown;
static
int
exit_on_mousedown
;
static
int
loop
=
1
;
static
int
framedrop
=
-
1
;
static
int
infinite_buffer
=
0
;
static
int
infinite_buffer
=
-
1
;
static
enum
ShowMode
show_mode
=
SHOW_MODE_NONE
;
static
const
char
*
audio_codec_name
;
static
const
char
*
subtitle_codec_name
;
...
...
@@ -2538,7 +2538,7 @@ static int read_thread(void *arg)
}
/* if the queue are full, no need to read more */
if
(
!
infinite_buffer
&&
if
(
infinite_buffer
<
1
&&
(
is
->
audioq
.
size
+
is
->
videoq
.
size
+
is
->
subtitleq
.
size
>
MAX_QUEUE_SIZE
||
(
(
is
->
audioq
.
nb_packets
>
MIN_FRAMES
||
is
->
audio_stream
<
0
||
is
->
audioq
.
abort_request
)
&&
(
is
->
videoq
.
nb_packets
>
MIN_FRAMES
||
is
->
video_stream
<
0
||
is
->
videoq
.
abort_request
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment