MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / send_stream_selection_request

Function send_stream_selection_request

libavformat/mmst.c:446–459  ·  view source on GitHub ↗

Send MMST stream selection command based on the AVStream->discard values. */

Source from the content-addressed store, hash-verified

444
445/** Send MMST stream selection command based on the AVStream->discard values. */
446static int send_stream_selection_request(MMSTContext *mmst)
447{
448 int i;
449 MMSContext *mms = &mmst->mms;
450 // send the streams we want back...
451 start_command_packet(mmst, CS_PKT_STREAM_ID_REQUEST);
452 bytestream_put_le32(&mms->write_out_ptr, mms->stream_num); // stream nums
453 for(i= 0; i<mms->stream_num; i++) {
454 bytestream_put_le16(&mms->write_out_ptr, 0xffff); // flags
455 bytestream_put_le16(&mms->write_out_ptr, mms->streams[i].id); // stream id
456 bytestream_put_le16(&mms->write_out_ptr, 0); // selection
457 }
458 return send_command_packet(mmst);
459}
460
461static int send_close_packet(MMSTContext *mmst)
462{

Callers

nothing calls this directly

Calls 2

start_command_packetFunction · 0.85
send_command_packetFunction · 0.85

Tested by

no test coverage detected