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
lavf/mov: Only copy extradata if it exists.
Avoids undefined call of memcpy(ptr, NULL, 0);
tags/n3.4
Carl Eugen Hoyos
8 years ago
parent
b6a8396245
commit
c6aaf0840c
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/mov.c
+ 1
- 1
libavformat/mov.c
View File
@@ -2321,7 +2321,7 @@ int ff_mov_read_stsd_entries(MOVContext *c, AVIOContext *pb, int entries)
} else if (a.size > 0)
avio_skip(pb, a.size);
if (sc->extradata) {
if (sc->extradata
&& st->codecpar->extradata
) {
int extra_size = st->codecpar->extradata_size;
/* Move the current stream extradata to the stream context one. */
Write
Preview
Loading…
Cancel
Save