mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 07:16:56 +00:00
in ts_detect_streams() try to identify the program found based on vpid and apid if the previous attempts failed for lack of infos
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26006 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1a3fb6c21e
commit
e9711acb5d
@ -875,6 +875,13 @@ static off_t ts_detect_streams(demuxer_t *demuxer, tsdemux_init_t *param)
|
||||
|
||||
if(video_found || audio_found)
|
||||
{
|
||||
if(!param->prog)
|
||||
{
|
||||
p = progid_for_pid(priv, video_found ? param->vpid : param->apid, 0);
|
||||
if(p != -1)
|
||||
param->prog = p;
|
||||
}
|
||||
|
||||
if(demuxer->stream->eof && (ret == 0))
|
||||
ret = init_pos;
|
||||
mp_msg(MSGT_DEMUXER, MSGL_INFO, " PROGRAM N. %d\n", param->prog);
|
||||
|
Loading…
Reference in New Issue
Block a user