aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tests
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2017-11-08 19:17:52 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2017-11-13 20:33:10 +0100
commitde6a1e32fd483db05d957268d5e45e2b1be9cab4 (patch)
tree198363774713258a45ef5182a87d8e2d4a2f37c9 /libavformat/tests
parentc7ded42d5dfc0124008b5b9b13a1a342324885ed (diff)
downloadffmpeg-de6a1e32fd483db05d957268d5e45e2b1be9cab4.tar.gz
movenc-test: fix potential uninitialized read
Fixes CID #1413023
Diffstat (limited to 'libavformat/tests')
-rw-r--r--libavformat/tests/movenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/tests/movenc.c b/libavformat/tests/movenc.c
index 8e59b74259..ad6c92a94c 100644
--- a/libavformat/tests/movenc.c
+++ b/libavformat/tests/movenc.c
@@ -115,6 +115,7 @@ static int io_write_data_type(void *opaque, uint8_t *buf, int size,
case AVIO_DATA_MARKER_BOUNDARY_POINT: str = "boundary"; break;
case AVIO_DATA_MARKER_UNKNOWN: str = "unknown"; break;
case AVIO_DATA_MARKER_TRAILER: str = "trailer"; break;
+ default: str = "unknown"; break;
}
if (time == AV_NOPTS_VALUE)
snprintf(timebuf, sizeof(timebuf), "nopts");