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
d00df260
Commit
d00df260
authored
Jan 16, 2013
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/segment: do not auto-select a video stream with attached_pic disposition
In particular, fix trac ticket #2138.
parent
bbce913e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
segment.c
libavformat/segment.c
+3
-1
No files found.
libavformat/segment.c
View file @
d00df260
...
...
@@ -475,7 +475,9 @@ static int select_reference_stream(AVFormatContext *s)
/* select first index for each type */
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
type
=
s
->
streams
[
i
]
->
codec
->
codec_type
;
if
((
unsigned
)
type
<
AVMEDIA_TYPE_NB
&&
type_index_map
[
type
]
==
-
1
)
if
((
unsigned
)
type
<
AVMEDIA_TYPE_NB
&&
type_index_map
[
type
]
==
-
1
/* ignore attached pictures/cover art streams */
&&
!
(
s
->
streams
[
i
]
->
disposition
&
AV_DISPOSITION_ATTACHED_PIC
))
type_index_map
[
type
]
=
i
;
}
...
...
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