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
e01a29a4
Commit
e01a29a4
authored
Jan 12, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avserver: remove code using deprecated CODEC_CAP_PARSE_ONLY.
parent
f3d02a8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
avserver.c
avserver.c
+0
-20
No files found.
avserver.c
View file @
e01a29a4
...
...
@@ -2112,22 +2112,6 @@ static void compute_status(HTTPContext *c)
c
->
buffer_end
=
c
->
pb_buffer
+
len
;
}
/* check if the parser needs to be opened for stream i */
static
void
open_parser
(
AVFormatContext
*
s
,
int
i
)
{
AVStream
*
st
=
s
->
streams
[
i
];
AVCodec
*
codec
;
if
(
!
st
->
codec
->
codec
)
{
codec
=
avcodec_find_decoder
(
st
->
codec
->
codec_id
);
if
(
codec
&&
(
codec
->
capabilities
&
CODEC_CAP_PARSE_ONLY
))
{
st
->
codec
->
parse_only
=
1
;
if
(
avcodec_open2
(
st
->
codec
,
codec
,
NULL
)
<
0
)
st
->
codec
->
parse_only
=
0
;
}
}
}
static
int
open_input_stream
(
HTTPContext
*
c
,
const
char
*
info
)
{
char
buf
[
128
];
...
...
@@ -2173,10 +2157,6 @@ static int open_input_stream(HTTPContext *c, const char *info)
return
-
1
;
}
/* open each parser */
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
open_parser
(
s
,
i
);
/* choose stream as clock source (we favorize video stream if
present) for packet sending */
c
->
pts_stream_index
=
0
;
...
...
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