[FFmpeg-cvslog] movenc-test: fix potential uninitialized read

Timo Rothenpieler git at videolan.org
Mon Nov 13 21:49:24 EET 2017


ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Wed Nov  8 19:17:52 2017 +0100| [de6a1e32fd483db05d957268d5e45e2b1be9cab4] | committer: Timo Rothenpieler

movenc-test: fix potential uninitialized read

Fixes CID #1413023

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=de6a1e32fd483db05d957268d5e45e2b1be9cab4
---

 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");



More information about the ffmpeg-cvslog mailing list