diff options
author | Carl Eugen Hoyos | 2017-03-21 08:03:49 +0100 |
---|---|---|
committer | Carl Eugen Hoyos | 2017-03-21 08:04:59 +0100 |
commit | 4b192ffdbe226461d8a07fd36d655ec13b2c7582 (patch) | |
tree | 8960011afbf9d8fff826ca142851e2614994a52b /ffmpeg.c | |
parent | 66963d4b8d302611553e7928063c1cb2ff0efdff (diff) |
ffmpeg: Initialize two stack variables.
Avoids reading from uninitialized memory, regression since af1761f7
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1434,7 +1434,7 @@ static int reap_filters(int flush) filter = ost->filter->filter; if (!ost->initialized) { - char error[1024]; + char error[1024] = ""; ret = init_output_stream(ost, error, sizeof(error)); if (ret < 0) { av_log(NULL, AV_LOG_ERROR, "Error initializing output stream %d:%d -- %s\n", @@ -1847,7 +1847,7 @@ static void flush_encoders(void) // Maybe we should just let encoding fail instead. if (!ost->initialized) { FilterGraph *fg = ost->filter->graph; - char error[1024]; + char error[1024] = ""; av_log(NULL, AV_LOG_WARNING, "Finishing stream %d:%d without any data written to it.\n", |