hls: Create an AVProgram for each variant
authorLYF <yefei.li@gmail.com>
Fri, 16 Nov 2012 06:12:27 +0000 (14:12 +0800)
committerMartin Storsjö <martin@martin.st>
Mon, 29 Jul 2013 06:50:09 +0000 (09:50 +0300)
commitc110cbf6b59dfa0f3fc712b4e3c9095e33c57b50
treeff82f3cce9e771d57ce29df6d5b58bc17114b494
parent9d64f236292ba28018dd9afd2d57f8f944b33f81
hls: Create an AVProgram for each variant

Without the information, an application may choose audio from one
variant and video from another variant, which leads to fetching two
variants from the network. This enables av_find_best_stream() to find
matching audio and video streams, so that only one variant is fetched.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/hls.c