[FFmpeg-cvslog] Add missing initialization for AVProbeData.
Reimar Döffinger
git at videolan.org
Mon Aug 11 21:17:25 CEST 2014
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Mon Aug 11 19:55:26 2014 +0200| [2c0454cd208d1a7a955cc973df5de44c26166229] | committer: Reimar Döffinger
Add missing initialization for AVProbeData.
This has become necessary since the new mime field was added.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2c0454cd208d1a7a955cc973df5de44c26166229
---
libavformat/img2dec.c | 2 +-
tools/probetest.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c
index d70fc75..a82f50f 100644
--- a/libavformat/img2dec.c
+++ b/libavformat/img2dec.c
@@ -308,7 +308,7 @@ int ff_img_read_header(AVFormatContext *s1)
int probe_buffer_size = 2048;
uint8_t *probe_buffer = av_realloc(NULL, probe_buffer_size + AVPROBE_PADDING_SIZE);
AVInputFormat *fmt = NULL;
- AVProbeData pd;
+ AVProbeData pd = { 0 };
if (!probe_buffer)
return AVERROR(ENOMEM);
diff --git a/tools/probetest.c b/tools/probetest.c
index b685e3d..78327de 100644
--- a/tools/probetest.c
+++ b/tools/probetest.c
@@ -78,7 +78,7 @@ static void print_times(void)
int main(int argc, char **argv)
{
unsigned int p, i, type, size, retry;
- AVProbeData pd;
+ AVProbeData pd = { 0 };
AVLFG state;
PutBitContext pb;
int retry_count= 4097;
More information about the ffmpeg-cvslog
mailing list