Commit 34f8eda0 authored by conrad's avatar conrad

Just ignore streams with unknown codec_type instead of exiting

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22213 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3eef1d5b
...@@ -2051,7 +2051,7 @@ static int decode_thread(void *arg) ...@@ -2051,7 +2051,7 @@ static int decode_thread(void *arg)
AVCodecContext *avctx = st->codec; AVCodecContext *avctx = st->codec;
ic->streams[i]->discard = AVDISCARD_ALL; ic->streams[i]->discard = AVDISCARD_ALL;
if(avctx->codec_type >= (unsigned)CODEC_TYPE_NB) if(avctx->codec_type >= (unsigned)CODEC_TYPE_NB)
exit(1); continue;
if(st_count[avctx->codec_type]++ != wanted_stream[avctx->codec_type] && wanted_stream[avctx->codec_type] >= 0) if(st_count[avctx->codec_type]++ != wanted_stream[avctx->codec_type] && wanted_stream[avctx->codec_type] >= 0)
continue; continue;
......
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