stream->packetsize = psize;
stream->hb_stream_type = transport;
hb_ts_stream_init(stream);
+ if ( !stream->ts_number_video_pids || !stream->ts_number_audio_pids )
+ {
+ return 0;
+ }
return 1;
}
if ( hb_stream_check_for_dvd_ps(buf) != 0 )
}
+ if ( index_of_pid( elementary_PID, stream ) < 0 )
+ {
+ // already have this pid - do nothing
+ }
if (stream->ts_number_video_pids == 0 && st2codec[stream_type].kind == V )
{
stream->ts_video_pids[0] = elementary_PID;
if ((stream->ts_number_video_pids > 0) && (stream->ts_number_audio_pids > 0))
break;
}
+ // XXX - until we figure out how to handle VC1 just bail when we find it so
+ // that ffmpeg will claim the input stream.
+ if ( stream->ts_stream_type[0] == 0xea )
+ {
+ stream->ts_number_video_pids = 0;
+ stream->ts_number_audio_pids = 0;
+ return;
+ }
hb_log("hb_ts_stream_find_pids - found the following PIDS");
hb_log(" Video PIDS : ");