es_out: add auto es selection policy
No real way to handle declared alternate video streams such as with live stream. Refactors selection stuff and leaves room for more improvement. Policy change does not alter previous es selection. Demuxers must make changes then before creating es.
Showing with 131 additions and 94 deletions