Fix av_find_best_stream when using a program
authorBalint Marton <cus@passwd.hu>
Wed, 16 Feb 2011 00:17:13 +0000 (00:17 +0000)
committerMans Rullgard <mans@mansr.com>
Wed, 16 Feb 2011 11:47:42 +0000 (11:47 +0000)
commit22ec6b738f1608e4b959fb655cf37c3343ec7e9f
tree5fdf6396aa83300a5d5a7af71f6219d555ce0af0
parent938b62538a719785bce0f1d49d3065937b29e3aa
Fix av_find_best_stream when using a program

The current implementation has a bug, it is returning the stream index
in the found program, and not the stream index in the list of all
streams. The attached patch fixes this issue.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/utils.c