[FFmpeg-devel] [PATCH 4/5] make av_find_best_stream() ignore streams marked with AV_DISPOSITION_IMPAIRED

Reimar Döffinger Reimar.Doeffinger
Sat Feb 5 10:37:15 CET 2011


On Sat, Feb 05, 2011 at 12:11:30PM +1100, Peter Ross wrote:
> ---
>  libavformat/utils.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/libavformat/utils.c b/libavformat/utils.c
> index d12bbc2..3a9ee2f 100644
> --- a/libavformat/utils.c
> +++ b/libavformat/utils.c
> @@ -2510,6 +2510,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_IMPAIRED))

Useless extra ()



More information about the ffmpeg-devel mailing list