movenc-test: fix potential uninitialized read
authorTimo Rothenpieler <timo@rothenpieler.org>
Wed, 8 Nov 2017 18:17:52 +0000 (19:17 +0100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Mon, 13 Nov 2017 19:33:10 +0000 (20:33 +0100)
Fixes CID #1413023

libavformat/tests/movenc.c

index 8e59b74..ad6c92a 100644 (file)
@@ -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");