summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-11-25 12:40:54 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-11-26 19:08:51 -0500
commit259d8c5647417da02aed3081f8442c734988bbf3 (patch)
tree3027eb6b316d7629f2418503a6799179c70d20e6 /libavformat
parent3c370f5abc55739a261534b9f9bdc739cedbbbb9 (diff)
downloadffmpeg-streaming-259d8c5647417da02aed3081f8442c734988bbf3.zip
ffmpeg-streaming-259d8c5647417da02aed3081f8442c734988bbf3.tar.gz
riff: do not add empty metadata tags in INFO chunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/riff.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c
index 7313092..190504c 100644
--- a/libavformat/riff.c
+++ b/libavformat/riff.c
@@ -734,6 +734,12 @@ int ff_read_riff_info(AVFormatContext *s, int64_t size)
chunk_size += (chunk_size & 1);
+ if (!chunk_code) {
+ if (chunk_size)
+ avio_skip(pb, chunk_size);
+ continue;
+ }
+
value = av_malloc(chunk_size + 1);
if (!value) {
av_log(s, AV_LOG_ERROR, "out of memory, unable to read INFO tag\n");
OpenPOWER on IntegriCloud