# FormatSource ## **Overview** **Related Modules:** [Format](format.md) **Description:** Defines the demuxer data source. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Fields

Variable Name

Description

type

SourceType

union {

  

int fd

  

char url [URL_LEN]

  

BufferStream * stream

};

Defines information about different types of data sources.

## **Details** ## **Field Documentation** ## fd ``` int FormatSource::fd ``` **Description:** Local file descriptor ## stream ``` [BufferStream](bufferstream.md)* FormatSource::stream ``` **Description:** Pointer to the function for reading buffer stream data ## type ``` [SourceType](format.md#ga3ae727773c367ac1041d72ac770a0ab1) FormatSource::type ``` **Description:** Data source type. For details, see [SourceType](format.md#ga3ae727773c367ac1041d72ac770a0ab1). ## url ``` char FormatSource::url[[URL_LEN](format.md#ga1ac54dd3b9b49c1800b5f502a87650be)] ``` **Description:** Network URI or local file path. The maximum length is specified by **URL\_LEN**.