diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2022-03-30 02:04:46 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2022-04-27 20:14:18 +0800 |
commit | d114f064c6e9294d6cd0453a51cac584120e6799 (patch) | |
tree | 4227e218bdd4d48b49311b7c7fe7516ed363a001 /libavcodec/ylc.c | |
parent | 79286d3eb64b5ce56e30d88f2d34692adb3fcaf0 (diff) | |
download | ffmpeg-d114f064c6e9294d6cd0453a51cac584120e6799.tar.gz |
avformat/mov: fix missing extra data updating
The stsc_index is checked and updated for the next sample. If the
next sample needs to update stsd_index and stsc_index, then only
stsc_index is updated, which leads to a missing
AV_PKT_DATA_NEW_EXTRADATA. For example, the sample in the second
chunk needs to update both.
entry[0]
first_chunk = 1
samples_per_chunk = 3
sample_description_index = 1
entry[1]
first_chunk = 2
samples_per_chunk = 1
sample_description_index = 2
entry[2]
first_chunk = 3
samples_per_chunk = 8
sample_description_index = 2
The fix is simple: first check and update stsd_index for current
sample, then check and update stsc_index for the next.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Diffstat (limited to 'libavcodec/ylc.c')
0 files changed, 0 insertions, 0 deletions