blob: 3bf27efb57e3032557d101d711f3c4e99b422cd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef AV_CONTAINER_IDENTIFY_H_INC
#define AV_CONTAINER_IDENTIFY_H_INC
#include <stddef.h>
#ifdef __cplusplus
extern "C"
{
#endif
#define AV_CONTAINER_UNKNOWN 0
#define AV_CONTAINER_MPEGTS 1
#define AV_CONTAINER_FLV 2
#define AV_CONTAINER_MP4 3
/*
Description:to identify the container type of the whole bytestream;
Paraments:
para1:[IN] buff, a pointer to the beginning of this bytestream;
para1:[IN] size, how long is this bytestream;
Return:
AV_CONTAINER_UNKNOWN(0):can not identifying its container format;
AV_CONTAINER_MPEGTS(1):this bytestream belongs to MPEG-TS container;
AV_CONTAINER_FLV(2):this bytestream belongs to FLV container;
AV_CONTAINER_MP4(3):this bytestream belongs to MP4 container;
*/
int AV_container_identify(const char* buff, size_t size);
#ifdef __cplusplus
}
#endif
#endif
|