Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Yaqiang <wangyaqiang03@kuaishou.com>2022-09-01 16:29:03 +0300
committerSteven Liu <lq@chinaffmpeg.org>2022-09-21 08:58:40 +0300
commit0744782de3ee37fc2b8d9db73ec15d774165b4e5 (patch)
tree2b3f7f93a164cb8f80ffb6c5a62de1477993724a /libavformat/isom.h
parent3ade6a8644ab519fcd7caa7ef457dd406162bc14 (diff)
avformat/mov: get the correct fragment stsd_id when decrypting the sample
When determining whether a packet should be decrypted, should use the stsd_id of the fragment where the current packet is located. Reviewed-by: Zhao Zhili <zhilizhao@tencent.com> Signed-off-by: Wang Yaqiang <wangyaqiang03@kuaishou.com>
Diffstat (limited to 'libavformat/isom.h')
-rw-r--r--libavformat/isom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/isom.h b/libavformat/isom.h
index fd236b985f..64fb7065d5 100644
--- a/libavformat/isom.h
+++ b/libavformat/isom.h
@@ -139,6 +139,7 @@ typedef struct MOVFragmentStreamInfo {
int index_base;
int index_entry;
MOVEncryptionIndex *encryption_index;
+ int stsd_id; // current fragment stsd_id
} MOVFragmentStreamInfo;
typedef struct MOVFragmentIndexItem {