Commit 8ef94840 authored by David Conrad's avatar David Conrad
Browse files

Just ignore streams with unknown codec_type instead of exiting

Originally committed as revision 22213 to svn://
parent 818636ec
......@@ -2051,7 +2051,7 @@ static int decode_thread(void *arg)
AVCodecContext *avctx = st->codec;
ic->streams[i]->discard = AVDISCARD_ALL;
if(avctx->codec_type >= (unsigned)CODEC_TYPE_NB)
if(st_count[avctx->codec_type]++ != wanted_stream[avctx->codec_type] && wanted_stream[avctx->codec_type] >= 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment