FFmpeg
Data Structures | Macros | Functions
hls_sample_encryption.h File Reference
#include <stdint.h>
#include "avformat.h"
#include "libavcodec/avcodec.h"
#include "libavutil/aes.h"

Go to the source code of this file.

Data Structures

struct  HLSCryptoContext
 
struct  HLSAudioSetupInfo
 

Macros

#define HLS_MAX_ID3_TAGS_DATA_LEN   138
 
#define HLS_MAX_AUDIO_SETUP_DATA_LEN   10
 

Functions

void ff_hls_senc_read_audio_setup_info (HLSAudioSetupInfo *info, const uint8_t *buf, size_t size)
 
int ff_hls_senc_parse_audio_setup_info (AVStream *st, HLSAudioSetupInfo *info)
 
int ff_hls_senc_decrypt_frame (enum AVCodecID codec_id, HLSCryptoContext *crypto_ctx, AVPacket *pkt)
 

Detailed Description

Apple HTTP Live Streaming Sample Encryption https://developer.apple.com/library/ios/documentation/AudioVideo/Conceptual/HLS_Sample_Encryption

Definition in file hls_sample_encryption.h.

Macro Definition Documentation

◆ HLS_MAX_ID3_TAGS_DATA_LEN

#define HLS_MAX_ID3_TAGS_DATA_LEN   138

Definition at line 39 of file hls_sample_encryption.h.

◆ HLS_MAX_AUDIO_SETUP_DATA_LEN

#define HLS_MAX_AUDIO_SETUP_DATA_LEN   10

Definition at line 40 of file hls_sample_encryption.h.

Function Documentation

◆ ff_hls_senc_read_audio_setup_info()

void ff_hls_senc_read_audio_setup_info ( HLSAudioSetupInfo info,
const uint8_t *  buf,
size_t  size 
)

Definition at line 56 of file hls_sample_encryption.c.

Referenced by parse_id3().

◆ ff_hls_senc_parse_audio_setup_info()

int ff_hls_senc_parse_audio_setup_info ( AVStream st,
HLSAudioSetupInfo info 
)

Definition at line 87 of file hls_sample_encryption.c.

Referenced by hls_read_header().

◆ ff_hls_senc_decrypt_frame()

int ff_hls_senc_decrypt_frame ( enum AVCodecID  codec_id,
HLSCryptoContext crypto_ctx,
AVPacket pkt 
)

Definition at line 381 of file hls_sample_encryption.c.

Referenced by hls_read_packet().