Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
external
ffmpeg
Commits
52091491
Commit
52091491
authored
Feb 10, 2011
by
Peter Ross
Committed by
Janne Grunau
Feb 10, 2011
Browse files
make av_find_best_stream() ignore streams marked with AV_DISPOSITION_*_IMPAIRED
Signed-off-by:
Janne Grunau
<
janne-ffmpeg@jannau.net
>
parent
12c14cd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
libavformat/utils.c
View file @
52091491
...
...
@@ -2516,6 +2516,8 @@ int av_find_best_stream(AVFormatContext *ic,
continue
;
if
(
wanted_stream_nb
>=
0
&&
stream_number
++
!=
wanted_stream_nb
)
continue
;
if
(
st
->
disposition
&
(
AV_DISPOSITION_HEARING_IMPAIRED
|
AV_DISPOSITION_VISUAL_IMPAIRED
))
continue
;
if
(
decoder_ret
)
{
decoder
=
avcodec_find_decoder
(
ic
->
streams
[
i
]
->
codec
->
codec_id
);
if
(
!
decoder
)
{
...
...
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