mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/mov: Fix memory leak in encryption info.
Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
fbfee6adea
commit
606c5c7f3a
@ -5833,6 +5833,7 @@ static int mov_read_sample_encryption_info(MOVContext *c, AVIOContext *pb, MOVSt
|
||||
|
||||
if (use_subsamples) {
|
||||
subsample_count = avio_rb16(pb);
|
||||
av_free((*sample)->subsamples);
|
||||
(*sample)->subsamples = av_mallocz_array(subsample_count, sizeof(*subsamples));
|
||||
if (!(*sample)->subsamples) {
|
||||
av_encryption_info_free(*sample);
|
||||
|
Loading…
Reference in New Issue
Block a user