• Marton Balint's avatar
    Fix av_find_best_stream when providing a wanted stream · 5126a8ec
    Marton Balint authored
    In the main loop, stream_number is incremented after checking the stream type,
    so the search usually will not find the wanted stream.
    
    This patch eliminates the useless stream_number variable and introduces a new
    one, called real_stream_index to store the real stream index of the current
    stream, no matter if we are looping through all the streams or only the streams
    of a program.
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    5126a8ec
utils.c 122 KB