Skip to content

Commit

Permalink
lavf/dashdec: add serial
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhiqiang committed Aug 20, 2018
1 parent d91ce10 commit 3b6df97
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions libavcodec/avcodec.h
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ typedef struct AVPacket {
int size;
#define MAX_PKT_STREAM_ID_LEN 20
char stream_id[MAX_PKT_STREAM_ID_LEN];
int serial;
int stream_index;
/**
* A combination of AV_PKT_FLAG values
Expand Down
1 change: 1 addition & 0 deletions libavcodec/avpacket.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ FF_ENABLE_DEPRECATION_WARNINGS
dst->current_sap = src->current_sap;
dst->next_sap = src->next_sap;
strncpy(dst->stream_id, src->stream_id, MAX_PKT_STREAM_ID_LEN);
dst->serial = src->serial;

for (i = 0; i < src->side_data_elems; i++) {
enum AVPacketSideDataType type = src->side_data[i].type;
Expand Down
2 changes: 2 additions & 0 deletions libavutil/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ typedef struct AVAppSwitchControl{
int64_t switch_sap;
int64_t current_sap;
int64_t next_sap;
int current_serial;
int next_serial;
int64_t max_differ;

void * switch_mtx_ptr;
Expand Down

0 comments on commit 3b6df97

Please sign in to comment.