Data Structures | Macros | Functions
hls_sample_encryption.h File Reference
#include <stddef.h>
#include <stdint.h>
#include "libavcodec/codec_id.h"
#include "libavcodec/packet.h"
#include "avformat.h"

Go to the source code of this file.

Data Structures

struct  HLSCryptoContext
struct  HLSAudioSetupInfo


#define HLS_MAX_ID3_TAGS_DATA_LEN   138


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


#define HLS_MAX_ID3_TAGS_DATA_LEN   138

Definition at line 40 of file hls_sample_encryption.h.



Definition at line 41 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 61 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 93 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 387 of file hls_sample_encryption.c.

Referenced by hls_read_packet().