comparison libmpdemux/demux_lavf.c @ 36385:fc93e82b8afc

demux_lavf: Ignore failure to find stream info. It is not necessarily fatal and allows playback of HEVC ES streams.
author reimar
date Sun, 20 Oct 2013 12:51:38 +0000
parents 505fcd136e73
children 4eb54147c488
comparison
equal deleted inserted replaced
36384:e79bac50b920 36385:fc93e82b8afc
587 587
588 priv->avfc= avfc; 588 priv->avfc= avfc;
589 589
590 if(avformat_find_stream_info(avfc, NULL) < 0){ 590 if(avformat_find_stream_info(avfc, NULL) < 0){
591 mp_msg(MSGT_HEADER,MSGL_ERR,"LAVF_header: av_find_stream_info() failed\n"); 591 mp_msg(MSGT_HEADER,MSGL_ERR,"LAVF_header: av_find_stream_info() failed\n");
592 return NULL;
593 } 592 }
594 593
595 /* Add metadata. */ 594 /* Add metadata. */
596 while((t = av_dict_get(avfc->metadata, "", t, AV_DICT_IGNORE_SUFFIX))) 595 while((t = av_dict_get(avfc->metadata, "", t, AV_DICT_IGNORE_SUFFIX)))
597 demux_info_add(demuxer, t->key, t->value); 596 demux_info_add(demuxer, t->key, t->value);