movenc-test: fix potential uninitialized read

Fixes CID #1413023
This commit is contained in:
Timo Rothenpieler 2017-11-08 19:17:52 +01:00
parent c7ded42d5d
commit de6a1e32fd

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