This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avformat/movenc: fix size calculation in mov_write_eac3_tag()
Otherwise it would assert when flushing bits.
tags/n4.2
Paul B Mahol
7 years ago
parent
7d70f09307
commit
027f032bbc
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/movenc.c
+ 1
- 1
libavformat/movenc.c
View File
@@ -541,7 +541,7 @@ static int mov_write_eac3_tag(AVIOContext *pb, MOVTrack *track)
return AVERROR(EINVAL);
info = track->eac3_priv;
size = 2 + 4 * (info->num_ind_sub + 1);
size = 2 +
((3
4 * (info->num_ind_sub + 1
) + 7) >> 3
);
buf = av_malloc(size);
if (!buf) {
size = AVERROR(ENOMEM);
Write
Preview
Loading…
Cancel
Save