diff options
Diffstat (limited to 'libavformat/img2dec.c')
-rw-r--r-- | libavformat/img2dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/img2dec.c b/libavformat/img2dec.c index d4912410cc..5da123f4e0 100644 --- a/libavformat/img2dec.c +++ b/libavformat/img2dec.c @@ -361,6 +361,7 @@ int ff_img_read_packet(AVFormatContext *s1, AVPacket *pkt) ret = avio_read(f[0], header, PROBE_BUF_MIN); if (ret < 0) return ret; + memset(header + ret, 0, sizeof(header) - ret); avio_skip(f[0], -ret); pd.buf = header; pd.buf_size = ret; |