avformat/utils: Do not select audio streams with unknown sample rate in av_find_best_...
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Jun 2015 22:55:12 +0000 (00:55 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Jun 2015 23:02:43 +0000 (01:02 +0200)
commit42c41e96ff6dc4fa24d98e1913aff925b8122776
treeb4d6c3f650d337ba5631c520a8b09181ddfd3d5c
parent51080dfa0843c77002df9e5e4dbd20693f5dd813
avformat/utils: Do not select audio streams with unknown sample rate in av_find_best_stream()

Together with the next commit this prevents non-PCM S302M from being selected unless either
it can be decoded or the user selects passthrough/copy

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c