Just ignore streams with unknown codec_type instead of exiting
Originally committed as revision 22213 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
818636ecf1
commit
8ef9484023
2
ffplay.c
2
ffplay.c
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user