Skip to content

Commit

Permalink
Update header
Browse files Browse the repository at this point in the history
  • Loading branch information
jedekar committed Mar 26, 2024
1 parent 2907b08 commit 9ec8745
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-attach-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
description: 'Tag of the release'
required: true
type: string
push:
branches:
- feature/c


# By default, run all commands in a bash shell. On Windows, the default would
# otherwise be powershell.
Expand Down Expand Up @@ -146,5 +150,5 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
tag: ${{ inputs.tag }}
tag: dev-arm64-test
draft: false
15 changes: 14 additions & 1 deletion include/packager/live_packager_export.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ typedef enum EncryptionScheme {
} EncryptionScheme_t;

enum KeySize {
IV_MAX_SIZE = 16,
KEY_SIZE = 16,
KEY_ID_SIZE = 16,
};
Expand All @@ -45,13 +46,25 @@ typedef struct LivePackagerConfig {
TrackType_t track_type;

size_t iv_size;
uint8_t* iv;
uint8_t iv[IV_MAX_SIZE];
uint8_t key[KEY_SIZE];
uint8_t key_id[KEY_ID_SIZE];
EncryptionScheme_t protection_scheme;

/// User-specified segment number.
/// For FMP4 output:
/// It can be used to set the moof header sequence number if > 0.
/// For M2TS output:
/// It is be used to set the continuity counter.
uint32_t segment_number;

/// The offset to be applied to transport stream (e.g. MPEG2-TS, HLS packed
/// audio) timestamps to compensate for possible negative timestamps in the
/// input.
int32_t m2ts_offset_ms;

/// Used for timed text packaging to set the fragment decode time when the
/// output format is either VTT in MP4 or TTML in MP4.
int64_t timed_text_decode_time;
} LivePackagerConfig_t;

Expand Down

0 comments on commit 9ec8745

Please sign in to comment.