[FFmpeg-devel] [PATCH] movenc-test: fix potential uninitialized read
Timo Rothenpieler
timo at rothenpieler.org
Mon Nov 13 12:25:03 EET 2017
Fixes CID #1413023
---
libavformat/tests/movenc.c | 1 +
1 file changed, 1 insertion(+)
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");
--
2.14.2
More information about the ffmpeg-devel
mailing list