Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
cd0e0881
Commit
cd0e0881
authored
Oct 21, 2015
by
Alexandra Hájková
Committed by
Luca Barbato
Oct 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avconv: support infinite loop for the loop option
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
a9a60106
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
avconv.c
avconv.c
+3
-2
avconv.texi
doc/avconv.texi
+2
-1
No files found.
avconv.c
View file @
cd0e0881
...
@@ -2329,7 +2329,8 @@ static int seek_to_start(InputFile *ifile, AVFormatContext *is)
...
@@ -2329,7 +2329,8 @@ static int seek_to_start(InputFile *ifile, AVFormatContext *is)
ifile
->
time_base
);
ifile
->
time_base
);
}
}
ifile
->
loop
--
;
if
(
ifile
->
loop
>
0
)
ifile
->
loop
--
;
return
ret
;
return
ret
;
}
}
...
@@ -2375,7 +2376,7 @@ static int process_input(void)
...
@@ -2375,7 +2376,7 @@ static int process_input(void)
ifile
->
eagain
=
1
;
ifile
->
eagain
=
1
;
return
ret
;
return
ret
;
}
}
if
(
(
ret
<
0
)
&&
(
ifile
->
loop
>
1
)
)
{
if
(
ret
<
0
&&
ifile
->
loop
)
{
if
((
ret
=
seek_to_start
(
ifile
,
is
))
<
0
)
if
((
ret
=
seek_to_start
(
ifile
,
is
))
<
0
)
return
ret
;
return
ret
;
ret
=
get_input_packet
(
ifile
,
&
pkt
);
ret
=
get_input_packet
(
ifile
,
&
pkt
);
...
...
doc/avconv.texi
View file @
cd0e0881
...
@@ -254,7 +254,8 @@ Overwrite output files without asking.
...
@@ -254,7 +254,8 @@ Overwrite output files without asking.
Immediately exit when output files already exist.
Immediately exit when output files already exist.
@item -loop @var
{
number
}
(@emph
{
input
}
)
@item -loop @var
{
number
}
(@emph
{
input
}
)
Set number of times input stream shall be looped.
Set number of times input stream shall be looped. Loop 0 means no loop,
loop -1 means infinite loop.
@item -c[:@var
{
stream
_
specifier
}
] @var
{
codec
}
(@emph
{
input/output,per-stream
}
)
@item -c[:@var
{
stream
_
specifier
}
] @var
{
codec
}
(@emph
{
input/output,per-stream
}
)
@itemx -codec[:@var
{
stream
_
specifier
}
] @var
{
codec
}
(@emph
{
input/output,per-stream
}
)
@itemx -codec[:@var
{
stream
_
specifier
}
] @var
{
codec
}
(@emph
{
input/output,per-stream
}
)
...
...
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