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
mpegtsenc: Clear st->priv_data when freeing it
If not cleared, the caller might try to free it. Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n0.8
Martin Storsjö
14 years ago
parent
a7ea5e3d35
commit
ed87375dd5
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
libavformat/mpegtsenc.c
+ 1
- 1
libavformat/mpegtsenc.c
View File
@@ -588,7 +588,7 @@ static int mpegts_write_header(AVFormatContext *s)
av_free(pids);
for(i = 0;i < s->nb_streams; i++) {
st = s->streams[i];
av_free(st->priv_data);
av_free
p
(
&
st->priv_data);
}
return -1;
}
Write
Preview
Loading…
Cancel
Save